Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created November 16, 2011 21:00
Show Gist options
  • Save pullmonkey/1371375 to your computer and use it in GitHub Desktop.
Save pullmonkey/1371375 to your computer and use it in GitHub Desktop.
formgen sample fields_for1
<div class="fields">
<div class="field">
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div class="field">
<%= f.label :bar %>
<%= f.text_field :bar %>
</div>
<%= link_to_remove_fields "remove", f %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment