Class: Droom::ServicesController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Droom::ServicesController
- Defined in:
- app/controllers/droom/services_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Methods inherited from EngineController
Instance Method Details
#create ⇒ Object
24 25 26 27 |
# File 'app/controllers/droom/services_controller.rb', line 24 def create @service.update_attributes(service_params) respond_with @service end |
#destroy ⇒ Object
38 39 40 41 |
# File 'app/controllers/droom/services_controller.rb', line 38 def destroy @service.destroy head :ok end |
#edit ⇒ Object
29 30 31 |
# File 'app/controllers/droom/services_controller.rb', line 29 def edit respond_with @service end |
#index ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/droom/services_controller.rb', line 8 def index @groups = Droom::Group.all @group_permissions = Droom::GroupPermission.by_group_id respond_with(@services) do |format| format.js { render :partial => 'droom/services/services' } end end |
#new ⇒ Object
20 21 22 |
# File 'app/controllers/droom/services_controller.rb', line 20 def new respond_with @service end |
#show ⇒ Object
16 17 18 |
# File 'app/controllers/droom/services_controller.rb', line 16 def show respond_with @service end |
#update ⇒ Object
33 34 35 36 |
# File 'app/controllers/droom/services_controller.rb', line 33 def update @service.update_attributes(service_params) respond_with @service end |