Flowdock
method

redirect_to_with_flash

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActionController::Flash::InstanceMethods
  • 1.0.0
  • 1.1.1
  • 1.1.6
  • 1.2.0
  • 1.2.6
  • 2.0.0
  • 2.0.3
  • 2.1.0
  • 2.2.1
  • 2.3.2
  • 2.3.8 (0)
  • 3.0.0
  • 3.0.5
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.3
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • What's this?
redirect_to_with_flash(options = {}, response_status_and_flash = {}) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/flash.rb, line 163
        def redirect_to_with_flash(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
          
          redirect_to_without_flash(options, response_status_and_flash)
        end
Register or log in to add new notes.