instance method
form_authenticity_token
Ruby on Rails 7.2.3
Since v2.2.3 PrivateSignature
form_authenticity_token(form_options: {})
Creates the authenticity token for the current request.
Parameters
-
form_optionskey = {}
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 481
def form_authenticity_token(form_options: {}) # :doc:
masked_authenticity_token(form_options: form_options)
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