aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/action_view_overview.textile
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-19 22:30:51 -0700
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-05-19 22:30:51 -0700
commitd0373507e79952c902f82500742910d769d70d09 (patch)
tree95ccccb9b26e59a0ef5e93627b5634c020239815 /railties/guides/source/action_view_overview.textile
parent22abbb862a49d685a9e6767c994b20ba051c2fea (diff)
downloadrails-d0373507e79952c902f82500742910d769d70d09.tar.gz
rails-d0373507e79952c902f82500742910d769d70d09.tar.bz2
rails-d0373507e79952c902f82500742910d769d70d09.zip
Using each instead of for in actionview guide
Diffstat (limited to 'railties/guides/source/action_view_overview.textile')
-rw-r--r--railties/guides/source/action_view_overview.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/action_view_overview.textile b/railties/guides/source/action_view_overview.textile
index 2b2c197f46..b064851312 100644
--- a/railties/guides/source/action_view_overview.textile
+++ b/railties/guides/source/action_view_overview.textile
@@ -615,7 +615,7 @@ atom_feed do |feed|
feed.title("Posts Index")
feed.updated((@posts.first.created_at))
- for post in @posts
+ @posts.each do |post|
feed.entry(post) do |entry|
entry.title(post.title)
entry.content(post.body, :type => 'html')