Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add example for halt with template

  • Loading branch information...
commit 5f5bb9d029adbebcb1936eee63849b32bdfbb474 1 parent 3edbafe
@rkh rkh authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
View
4 README.rdoc
@@ -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>:
Please sign in to comment.
Something went wrong with that request. Please try again.