Permalink
Browse files

fix a typo in the README to showoff the default values

  • Loading branch information...
1 parent 64c7eae commit 4bb86d8fbb50e4882efd314e7bb940d7209bf1c8 @senny senny committed Nov 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -68,7 +68,7 @@ class Page
attribute :title, String
attribute :views, Integer, :default => 0
- attribute :slug, String, :default => lambda { |post, attribute| post.title.downcase.gsub(' ', '-') }
+ attribute :slug, String, :default => lambda { |page, attribute| page.title.downcase.gsub(' ', '-') }
end
page = Page.new :title => 'Virtus Is Awesome'

0 comments on commit 4bb86d8

Please sign in to comment.