method

form_authenticity_token

form_authenticity_token()
protected

Sets the token value for the current session. Pass a :secret option in protect_from_forgery to add a custom salt to the hash.