code_junkie

Rails: Fields_for without a scope?

Nov 13th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. <% fields_for "user[]" do |x|
  2. <%= x.text_field :name %>
  3. <% end %>
  4.  
  5. <%form_tag :my_form do %>
  6. <%= text_field_tag :foo, :bar %>
  7. <%end%>
Add Comment
Please, Sign In to add comment