add example for halt with template

This commit is contained in:
Konstantin Haase 2011-02-27 09:47:07 +01:00
parent 3edbafe525
commit 5f5bb9d029
1 changed files with 4 additions and 0 deletions

View File

@ -821,6 +821,10 @@ With headers:
halt 402, {'Content-Type' => 'text/plain'}, 'revenge'
It is of course possible to combine a template with +halt+:
halt erb(:error)
=== Passing
A route can punt processing to the next matching route using <tt>pass</tt>: