Class: Droom::VenuesController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Droom::VenuesController
- Defined in:
- app/controllers/droom/venues_controller.rb
Instance Method Summary collapse
Methods inherited from EngineController
Instance Method Details
#index ⇒ Object
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 |
#show ⇒ Object
15 16 17 |
# File 'app/controllers/droom/venues_controller.rb', line 15 def show respond_with @venue end |
#update ⇒ Object
19 20 21 22 |
# File 'app/controllers/droom/venues_controller.rb', line 19 def update @venue.update_attributes(params[:venue]) respond_with @venue end |