Permalink
Browse files

Using each instead of for in actionview guide

  • Loading branch information...
1 parent 22abbb8 commit d0373507e79952c902f82500742910d769d70d09 @guilleiguaran guilleiguaran committed May 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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')

0 comments on commit d037350

Please sign in to comment.