Permalink
Browse files

Changin 'for' with 'each' on FormHelpers guide

  • Loading branch information...
1 parent d037350 commit 93570bb321ca886d36c79c680e17ed577ea06768 @guilleiguaran guilleiguaran committed May 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/form_helpers.textile
@@ -712,7 +712,7 @@ You might want to render a form with a set of edit fields for each of a person's
<erb>
<%= form_for @person do |person_form| %>
<%= person_form.text_field :name %>
- <% for address in @person.addresses %>
+ <% @person.addresses.each do |address| %>
<%= person_form.fields_for address, :index => address do |address_form|%>
<%= address_form.text_field :city %>
<% end %>

0 comments on commit 93570bb

Please sign in to comment.