class ClubsController < ApplicationController
  before_filter :authenticate_user!

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

    authorize! :manage, @club
  end
end

class ClubsController < ApplicationController
  respond_to :html, :json

  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

  private

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

Update ClubsController for Update Action
Update ClubsController for Update Action

Update the ClubsController to include the update action, as well as
provide some refactoring to eliminate code duplication.
