Class: 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 self.model.attributes = params[model_symbol] @controller_name = 'page' @template_name = 'edit' render :partial => "page_part", :object => model, :locals => {:page_part_counter => params[:index].to_i} end |