diff --git a/README.rdoc b/README.rdoc index 6888fc8e..bf90a28f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -80,6 +80,12 @@ via the params[:splat] array: params[:splat] # => ["path/to/file", "xml"] end +Or with block parameters: + + get '/download/*.*' do |path, ext| + [path, ext] # => ["path/to/file", "xml"] + end + Route matching with Regular Expressions: get %r{/hello/([\w]+)} do