1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add example for halt with template in spanish readme

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
This commit is contained in:
Gabriel Andretta 2011-03-01 12:05:24 -03:00 committed by Konstantin Haase
parent 39351ff824
commit 5ca1df73c5

View file

@ -838,6 +838,10 @@ Con cabeceras:
halt 402, { 'Content-Type' => 'text/plain' }, 'venganza'
Obviamente, es posible utilizar +halt+ con una plantilla:
halt erb(:error)
=== Paso
Una ruta puede pasarle el procesamiento a la siguiente ruta que coincida con