instance method urlsafe_encode64

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

Signature

urlsafe_encode64(bin, padding: true)

No documentation comment.

Parameters

bin req
padding key = true
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 481
            def urlsafe_encode64(bin, padding: true)
              str = strict_encode64(bin).tr("+/", "-_")
              str = str.delete("=") unless padding
              str
            end

Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 481 · 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