Class: Admin::PageFieldsController
- Inherits:
-
ResourceController
- Object
- ActionController::Base
- ApplicationController
- ResourceController
- Admin::PageFieldsController
- Defined in:
- app/controllers/admin/page_fields_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
#cache, #pagination_parameters, #trusty_config
Instance Method Summary collapse
Methods inherited from ResourceController
#destroy, #index, model_class, paginate_models, #paginated?, #pagination_parameters, #will_paginate_options
Methods included from TrustyCms::ResourceResponses
Methods inherited from ApplicationController
#after_sign_in_path_for, #initialize, #template_name
Methods included from LoginSystem
Constructor Details
This class inherits a constructor from ApplicationController
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 |