instance method
follow_redirect!
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
follow_redirect!()
Follow a single redirect response. If the last response was not a redirect, an exception will be raised. Otherwise, the redirect is performed on the location header.
Source
# File actionpack/lib/action_controller/integration.rb, line 123
def follow_redirect!
raise "not a redirect! #{@status} #{@status_message}" unless redirect?
get(interpret_uri(headers['location'].first))
status
end
Defined in actionpack/lib/action_controller/integration.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Integration::Session