Sha256: 8317ffb3a186f772f700db319c5a4630ef94a77b9ef76631e52dc50b8aac0d31
Contents?: true
Size: 718 Bytes
Versions: 3
Compression:
Stored size: 718 Bytes
Contents
h1 Settings - if @setting = simple_form_for @setting do |s| - @setting.template.each do |field_identifier, field| - fields = @setting.fields.find{|ob| ob.identifier == field_identifier} / - if fields.nil? / - fields = @setting.fields.build(type: "Cardboard::Field::#{field[:type].camelize}", identifier: field_identifier, default: field[:default] ) = s.fields_for :fields, fields do |f| - begin = render "cardboard/fields/#{field[:type]}", f: f, field: field, identifier: field_identifier - rescue ActionView::MissingTemplate => e = render "cardboard/fields/base_input", f: f, field: field, identifier: field_identifier = s.button :submit
Version data entries
3 entries across 3 versions & 1 rubygems