Class: Droom::OrganisationsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



13
14
15
16
# File 'app/controllers/droom/organisations_controller.rb', line 13

def create
  @organisation.update_attributes(params[:organisation])
  respond_with @organisation
end

#destroyObject



27
28
29
30
# File 'app/controllers/droom/organisations_controller.rb', line 27

def destroy
  @organisation.destroy
  head :ok
end

#showObject



23
24
25
# File 'app/controllers/droom/organisations_controller.rb', line 23

def show
  respond_with @organisation
end

#updateObject



18
19
20
21
# File 'app/controllers/droom/organisations_controller.rb', line 18

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