class method self.new

Ruby on Rails 8.1.3.1

Since v8.1.3.1

Available in: v8.1.3.1 edge

Signature

self.new(location)

No documentation comment.

Parameters

location req
Source
# File actionpack/lib/action_controller/metal/redirecting.rb, line 15
      def initialize(location)
        super("Unsafe redirect to #{location.to_s.truncate(100).inspect}, pass allow_other_host: true to redirect anyway.")
      end

Defined in actionpack/lib/action_controller/metal/redirecting.rb line 15 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Redirecting::OpenRedirectError

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close