Method: Integral::Backend::BaseController#destroy
- Defined in:
- app/controllers/integral/backend/base_controller.rb
#destroy ⇒ Object
DELETE /:id
87 88 89 90 91 92 93 94 95 96 |
# File 'app/controllers/integral/backend/base_controller.rb', line 87 def destroy if @resource.destroy respond_successfully(('delete_success'), send("backend_#{controller_name}_path")) else = @resource.errors..to_sentence flash[:error] = "#{('delete_failure')} - #{}" redirect_to send("backend_#{controller_name}_path") end end |