<%= fields_for "form[fields][#{index}]", field do |f| %> <%= f.hidden_field :_type %><%= f.label :name, 'Name *' %><%= f.text_field :name %> Check box <%= f.label :label, 'Label' %><%= f.text_field :label %> <%= f.label :default, 'Default State' %><%= f.check_box :default %> - - - up down <%= link_to_function 'Delete', 'return delete_form_field(this);', :class => 'delete' %> <% end %>