Method: Integral::Backend::BaseController#update
- Defined in:
- app/controllers/integral/backend/base_controller.rb
#update ⇒ Object
PUT /:id Updating a resource
78 79 80 81 82 83 84 |
# File 'app/controllers/integral/backend/base_controller.rb', line 78 def update if @resource.update(resource_params) respond_successfully(('edit_success'), send("edit_backend_#{controller_name.singularize}_path", @resource.id)) else respond_failure(('edit_failure'), :edit) end end |