1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Using each instead of for in actionview guide

This commit is contained in:
Guillermo Iguaran 2011-05-19 22:30:51 -07:00
parent 22abbb862a
commit d0373507e7

View file

@ -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')