Class: Admin::PageFieldsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::PageFieldsController
- Defined in:
- app/controllers/admin/page_fields_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/controllers/admin/page_fields_controller.rb', line 2 def create model.attributes = page_fields_params @controller_name = 'page' @template_name = 'edit' render partial: 'page_field', object: model, locals: { page_field_counter: params[:page_field_counter].to_i } end |