instance method generic_url_rewriter

Ruby on Rails 2.3.18

Last seen in v2.3.18 Private — implementation detail, not part of the public API

Available in: v2.2.3 v2.3.18

Signature

generic_url_rewriter()

Get a temporary URL writer object

Source
# File actionpack/lib/action_controller/integration.rb, line 380
        def generic_url_rewriter
          env = {
            'REQUEST_METHOD' => "GET",
            'QUERY_STRING'   => "",
            "REQUEST_URI"    => "/",
            "HTTP_HOST"      => host,
            "SERVER_PORT"    => https? ? "443" : "80",
            "HTTPS"          => https? ? "on" : "off"
          }
          UrlRewriter.new(Request.new(env), {})
        end

Defined in actionpack/lib/action_controller/integration.rb line 380 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Integration::Session

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