Method: Effective::CrudController::Actions#edit
- Defined in:
- app/controllers/concerns/effective/crud_controller/actions.rb
#edit ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'app/controllers/concerns/effective/crud_controller/actions.rb', line 103 def edit Rails.logger.info 'Processed by Effective::CrudController#edit' self.resource ||= resource_scope.find(params[:id]) EffectiveResources.(self, :edit, resource) @page_title ||= "Edit #{resource}" run_callbacks(:resource_render) respond_to do |format| format.html { } format.js { render('edit', formats: :js) } end end |