Module: Lotus::Action::Redirect
- Defined in:
- lib/lotus/action/redirect.rb
Overview
HTTP redirect API
Instance Method Summary collapse
-
#redirect_to(url, status: 302) ⇒ Object
protected
Redirect to the given URL.
Instance Method Details
#redirect_to(url, status: 302) ⇒ Object (protected)
Redirect to the given URL
28 29 30 31 |
# File 'lib/lotus/action/redirect.rb', line 28 def redirect_to(url, status: 302) headers.merge!('Location' => url) self.status = status end |