Skip to content

Commit

Permalink
More 'halt' doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed Feb 22, 2010
1 parent 336179e commit 3135941
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.rdoc
Expand Up @@ -303,14 +303,22 @@ To immediately stop a request during a before filter or route use:

halt

You can also specify a body when halting ...
You can also specify the status when halting ...

halt 410

Or the body ...

halt 'this will be the body'

Or set the status and body ...
Or both ...

halt 401, 'go away!'

With headers ...

halt 402, {'Content-Type' => 'text/plain'}, 'revenge'

== Passing

A route can punt processing to the next matching route using <tt>pass</tt>:
Expand Down

0 comments on commit 3135941

Please sign in to comment.