class ClubsController < ApplicationController
  before_filter :authenticate_user!
  before_filter :get_club

  def edit
    authorize! :update, @club
  end

  def update
    authorize! :update, @club

    @club.update_attributes params[:club]

    respond_with_bip @club
  end

  def change_logo
    authorize! :update, @club
  end

  def upload_logo
    authorize! :update, @club

    # if no club logo was specified
    if params[:club].blank?
      render :change_logo, :formats => [ :js ]
    elsif @club.update_attributes params[:club]
      render
    else
      render :change_logo, :formats => [ :js ]
    end
  end

  private

  def get_club
    @club = Club.find params[:id]
  end
end

class ClubsController < ApplicationController
  before_filter :authenticate_user!, :except => [ :show ]
  before_filter :get_club

  def show
    redirect_to club_sales_page_path(@club) unless user_signed_in? and can?(:read, @club)
  end

  def edit
    authorize! :update, @club
  end

  def update
    authorize! :update, @club

    @club.update_attributes params[:club]

    respond_with_bip @club
  end

  def change_logo
    authorize! :update, @club
  end

  def upload_logo
    authorize! :update, @club

    # if no club logo was specified
    if params[:club].blank?
      render :change_logo, :formats => [ :js ]
    elsif @club.update_attributes params[:club]
      render
    else
      render :change_logo, :formats => [ :js ]
    end
  end

  private

  def get_club
    @club = Club.find params[:id]
  end
end

Add show Action to Clubs Controller
Add show Action to Clubs Controller

Update the Clubs controller to include a show action.
