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:
parent
22abbb862a
commit
d0373507e7
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue