method

redirect_to_with_flash

rails latest stable - Class: ActionController::Flash::InstanceMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

redirect_to_with_flash(options = {}, response_status_and_flash = {})
protected

No documentation available.

# 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