Skip to content

Commit

Permalink
add examples to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Jun 10, 2010
1 parent e34a01b commit 7810a54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,16 @@ Classic style:
end

namspace "/ruby" do
before { @an_important_note = "filters work, too" }
after do
@an_important_note = nil # don't tell
end
not_found do
"ruby does not know this ditty"
end
helpers do
def posts
super.where :topic => "ruby"
Expand Down

0 comments on commit 7810a54

Please sign in to comment.