Skip to content

Commit

Permalink
DataMapper behaves better with #each
Browse files Browse the repository at this point in the history
  • Loading branch information
namelessjon committed Mar 16, 2011
1 parent cd1ac5e commit 47d94a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/Models.markdown
Expand Up @@ -40,7 +40,7 @@ application!

Finally, the view at `./view/index.html`:

<% for post in @posts %>
<% @posts.each do |post| %>
<h3><%= post.title %></h3>
<p><%= post.body %></p>
<% end %>
Expand Down

0 comments on commit 47d94a2

Please sign in to comment.