diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 22:33:43 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-05-19 22:33:43 -0700 |
commit | 93570bb321ca886d36c79c680e17ed577ea06768 (patch) | |
tree | f96411a85f9ba771a25db736bc94828b6197fa4a /railties/guides/source/form_helpers.textile | |
parent | d0373507e79952c902f82500742910d769d70d09 (diff) | |
download | rails-93570bb321ca886d36c79c680e17ed577ea06768.tar.gz rails-93570bb321ca886d36c79c680e17ed577ea06768.tar.bz2 rails-93570bb321ca886d36c79c680e17ed577ea06768.zip |
Changin 'for' with 'each' on FormHelpers guide
Diffstat (limited to 'railties/guides/source/form_helpers.textile')
-rw-r--r-- | railties/guides/source/form_helpers.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile index a63245acec..4134c9f8ed 100644 --- a/railties/guides/source/form_helpers.textile +++ b/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 %> |