instance method
form_authenticity_token
Ruby on Rails 6.1.7.10
Since v2.2.3 PrivateSignature
form_authenticity_token(form_options: {})
Sets the token value for the current session.
Parameters
-
form_optionskey = {}
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 307
def form_authenticity_token(form_options: {})
masked_authenticity_token(session, form_options: form_options)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 307
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection