Skip to content
Browse files

DataMapper behaves better with #each

  • Loading branch information...
1 parent cd1ac5e commit 47d94a2826688bf7b537b4747406d662abe03142 @namelessjon namelessjon committed Mar 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 book/Models.markdown
View
2 book/Models.markdown
@@ -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 %>

0 comments on commit 47d94a2

Please sign in to comment.
Something went wrong with that request. Please try again.