Skip to content
This repository
Browse code

DataMapper behaves better with #each

  • Loading branch information...
commit 47d94a2826688bf7b537b4747406d662abe03142 1 parent cd1ac5e
Jon namelessjon authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  book/Models.markdown
2  book/Models.markdown
Source Rendered
@@ -40,7 +40,7 @@ application!
40 40
41 41 Finally, the view at `./view/index.html`:
42 42
43   - <% for post in @posts %>
  43 + <% @posts.each do |post| %>
44 44 <h3><%= post.title %></h3>
45 45 <p><%= post.body %></p>
46 46 <% end %>

0 comments on commit 47d94a2

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