Class: Droom::VenuesController

Inherits:
EngineController show all
Defined in:
app/controllers/droom/venues_controller.rb

Instance Method Summary collapse

Methods inherited from EngineController

#current_ability

Instance Method Details

#indexObject



7
8
9
10
11
12
13
# File 'app/controllers/droom/venues_controller.rb', line 7

def index
  respond_with @venues do |format|
    format.json {
      render :json => @venues.to_json(:user => @user)
    }
  end
end

#showObject



15
16
17
# File 'app/controllers/droom/venues_controller.rb', line 15

def show
  respond_with @venue
end

#updateObject



19
20
21
22
# File 'app/controllers/droom/venues_controller.rb', line 19

def update
  @venue.update_attributes(params[:venue])
  respond_with @venue
end