Class: Spina::Admin::ResourcesController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- Spina::ApplicationController
- AdminController
- Spina::Admin::ResourcesController
- Defined in:
- app/controllers/spina/admin/resources_controller.rb
Instance Method Summary collapse
Methods inherited from AdminController
Instance Method Details
#edit ⇒ Object
11 12 13 14 |
# File 'app/controllers/spina/admin/resources_controller.rb', line 11 def edit @resource.label, spina.admin_resource_path(@resource) t('spina.edit') end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/spina/admin/resources_controller.rb', line 7 def show @resource.label end |
#update ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/controllers/spina/admin/resources_controller.rb', line 16 def update if @resource.update(resource_params) redirect_to spina.admin_resource_path(@resource) else render :edit end end |