Class: GacoCms::Admin::FieldsController

Inherits:
BaseController show all
Defined in:
app/controllers/gaco_cms/admin/fields_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#index, #upload_file

Instance Method Details

#tplObject



8
9
10
11
# File 'app/controllers/gaco_cms/admin/fields_controller.rb', line 8

def tpl
  value = @field.field_values.new(group_no: params[:group_no])
  render partial: '/gaco_cms/admin/fields/render/field', locals: { value: value }
end