From 93570bb321ca886d36c79c680e17ed577ea06768 Mon Sep 17 00:00:00 2001
From: Guillermo Iguaran <guilleiguaran@gmail.com>
Date: Thu, 19 May 2011 22:33:43 -0700
Subject: Changin 'for' with 'each' on FormHelpers guide

---
 railties/guides/source/form_helpers.textile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'railties/guides/source/form_helpers.textile')

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 %>
-- 
cgit v1.2.3

