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 self.model = PageField.new(params[model_symbol]) @controller_name = 'page' @template_name = 'edit' render :partial => "page_field", :object => model, :locals => { :page_field_counter => params[:page_field_counter].to_i} end |