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:
parent
39351ff824
commit
5ca1df73c5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue