Method: Rack::Response#redirect
- Defined in:
- lib/rack/response.rb
#redirect(target, status = 302) ⇒ Object
90 91 92 93 |
# File 'lib/rack/response.rb', line 90 def redirect(target, status = 302) self.status = status self.location = target end |