From 5f5bb9d029adbebcb1936eee63849b32bdfbb474 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Sun, 27 Feb 2011 09:47:07 +0100 Subject: [PATCH] add example for halt with template --- README.rdoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.rdoc b/README.rdoc index bf7677ce..f8494e91 100644 --- a/README.rdoc +++ b/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 pass: