Permalink
Browse files

add example for halt with template

  • Loading branch information...
1 parent 3edbafe commit 5f5bb9d029adbebcb1936eee63849b32bdfbb474 @rkh rkh committed Feb 27, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
@@ -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>:

0 comments on commit 5f5bb9d

Please sign in to comment.