instance method
redirect_to
Ruby on Rails 3.1.12
Since v3.0.20Signature
redirect_to(options = {}, response_status_and_flash = {})
No documentation comment.
Parameters
-
optionsopt = {} -
response_status_and_flashopt = {}
Source
# File actionpack/lib/action_controller/metal/flash.rb, line 12
def redirect_to(options = {}, response_status_and_flash = {}) #:doc:
if alert = response_status_and_flash.delete(:alert)
flash[:alert] = alert
end
if notice = response_status_and_flash.delete(:notice)
flash[:notice] = notice
end
if other_flashes = response_status_and_flash.delete(:flash)
flash.update(other_flashes)
end
super(options, response_status_and_flash)
end
Defined in actionpack/lib/action_controller/metal/flash.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Flash