Module | Merb::Rack::Helpers |
In: |
lib/merb-core/rack/helpers.rb
|
A helper to build a rack response which implements a redirect. The status will be set to the passed in status if passed. If you pass in permanent it will be a 301, permanent redirect, otherwise it defaults to a temporary 302 redirect.
url<~to_s>: | The url to redirect to. |
options<Hash>: | A hash of options for the redirect |
status: The status code to use for the redirect permanent: True if this is a permanent redirect (301)
<Array>: | A rack response to redirect to the specified url. |
:api: plugin