public Method

AbstractResponse.redirect(to_url, response_status)

There's no documentation for this item.

Source Code

# File action_controller/response.rb, line 31
def redirect(to_url, response_status)
  self.headers["Status"] = response_status
  self.headers["Location"] = to_url

  self.body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.