Class: Droom::Api::VenuesController
- Inherits:
-
ApiController
- Object
- ApplicationController
- EngineController
- ApiController
- Droom::Api::VenuesController
- Defined in:
- app/controllers/droom/api/venues_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
-
#index ⇒ Object
after_filter :set_pagination_headers, only: [:index].
- #show ⇒ Object
- #update ⇒ Object
Methods inherited from ApiController
Methods inherited from EngineController
Instance Method Details
#create ⇒ Object
21 22 23 |
# File 'app/controllers/droom/api/venues_controller.rb', line 21 def create render json: @venue end |
#destroy ⇒ Object
25 26 27 28 |
# File 'app/controllers/droom/api/venues_controller.rb', line 25 def destroy @venue.destroy head :ok end |
#index ⇒ Object
after_filter :set_pagination_headers, only: [:index]
8 9 10 |
# File 'app/controllers/droom/api/venues_controller.rb', line 8 def index render json: @venues end |
#show ⇒ Object
12 13 14 |
# File 'app/controllers/droom/api/venues_controller.rb', line 12 def show render json: @venue end |
#update ⇒ Object
16 17 18 19 |
# File 'app/controllers/droom/api/venues_controller.rb', line 16 def update @venue.update_attributes(venue_params) render json: @venue end |