instance method
redirect_to
Ruby on Rails 8.0.4
Since v3.0.20 PrivateSignature
redirect_to(options = {}, response_options_and_flash = {})
No documentation comment.
Parameters
-
optionsopt = {} -
response_options_and_flashopt = {}
Source
# File actionpack/lib/action_controller/metal/flash.rb, line 53
def redirect_to(options = {}, response_options_and_flash = {}) # :doc:
self.class._flash_types.each do |flash_type|
if type = response_options_and_flash.delete(flash_type)
flash[flash_type] = type
end
end
if other_flashes = response_options_and_flash.delete(:flash)
flash.update(other_flashes)
end
super(options, response_options_and_flash)
end
Defined in actionpack/lib/action_controller/metal/flash.rb line 53
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Flash