Class: Admin::PagePartsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::PagePartsController
- Defined in:
- app/controllers/admin/page_parts_controller.rb
Instance Method Summary collapse
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 |