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

Version Path
trusty-cms-3.1.7 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.6 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.5 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.3 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.2 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.11 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.1 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.10 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.1.0 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.9 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.8 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.7 app/controllers/admin/page_fields_controller.rb
trusty-cms-3.0.6 app/controllers/admin/page_fields_controller.rb