= f.simple_fields_for name do |ff| - if f.object && f.object.errors[name.to_sym].any? - f.object.errors.full_messages_for(name.to_sym).each do |e| .alert.alert-danger= e = ff.input_field :name, as: :hidden, value: name.to_s - if options[:use_input_field] == false = ff.input :content, options[:field] - else = ff.input_field :content, options[:field][:input_html]