Permalink
Browse files

added param example to readme

  • Loading branch information...
1 parent 89b1d6b commit 635980b583f67cb0d449073321c450d5c572223b @joshbuddy committed May 5, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.rdoc
View
7 README.rdoc
@@ -35,6 +35,13 @@ Rack middleware for request rewriting.
pass
end
+ # If the request has a has a param of kitten=cute or kitten=happy, lets log it and pass it on!
+ #
+ on :params => {:kitten => /cute|happy/} do
+ act { log('what a nice cat') }
+ pass
+ end
+
fail
end

0 comments on commit 635980b

Please sign in to comment.