Permalink
Browse files

Fix DataMapper code example.

  • Loading branch information...
1 parent 83d562b commit aedc00a0d6ce4411bf98aa0d410c098b013c4f45 @namelessjon namelessjon committed Mar 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 book/Models.markdown
View
2 book/Models.markdown
@@ -31,7 +31,7 @@ application!
get '/' do
# get the latest 20 posts
- @posts = Post.get(:order => [ :id.desc ], :limit => 20)
+ @posts = Post.all(:order => [ :id.desc ], :limit => 20)
erb :index
end

0 comments on commit aedc00a

Please sign in to comment.