Sha256: d94676a5c2d0c065e621375988709ffd8210da7ff49db741873254b1dae51030
Contents?: true
Size: 404 Bytes
Versions: 13
Compression:
Stored size: 404 Bytes
Contents
class Admin::PageFieldsController < Admin::ResourceController def create self.model = PageField.new(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 private def page_fields_params params.permit(:name, :content) end end
Version data entries
13 entries across 13 versions & 1 rubygems