instance method normalize_relative_action_path

Ruby on Rails 8.1.2

Since v7.2.3 Private — implementation detail, not part of the public API

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

normalize_relative_action_path(rel_action_path)

No documentation comment.

Parameters

rel_action_path req
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 655
      def normalize_relative_action_path(rel_action_path)
        uri = URI.parse(request.path)
        # add the action path to the request.path
        uri.path += "/#{rel_action_path}"
        # relative path with "./path"
        uri.path.gsub!("/./", "/")

        uri.path.chomp("/")
      end

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

Defined in ActionController::RequestForgeryProtection

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