Class: Droom::OrganisationsController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Droom::OrganisationsController
- Defined in:
- app/controllers/droom/organisations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 |
# File 'app/controllers/droom/organisations_controller.rb', line 13 def create @organisation.update_attributes(params[:organisation]) respond_with @organisation end |
#destroy ⇒ Object
27 28 29 30 |
# File 'app/controllers/droom/organisations_controller.rb', line 27 def destroy @organisation.destroy head :ok end |
#show ⇒ Object
23 24 25 |
# File 'app/controllers/droom/organisations_controller.rb', line 23 def show respond_with @organisation end |
#update ⇒ Object
18 19 20 21 |
# File 'app/controllers/droom/organisations_controller.rb', line 18 def update @organisation.update_attributes(params[:organisation]) respond_with @organisation end |