Class: Admin::PagePartsController
- Inherits:
-
ResourceController
- Object
- ActionController::Base
- ApplicationController
- ResourceController
- Admin::PagePartsController
- Defined in:
- app/controllers/admin/page_parts_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_parts_controller.rb', line 2 def create model.attributes = page_parts_params @controller_name = 'page' @template_name = 'edit' render partial: 'page_part', object: model, locals: { page_part_counter: params[:index].to_i } end |