Actioncontroller::invalidauthenticitytoken ลู่นอกทางขั้นรูปแบบ

รหัสตัวอย่าง

0
0

ActionController::InvalidAuthenticityToken ลู่นอกทางตอนที่ submitting รูปแบบ

// add this after form tag:    <%= token_tag %> 
0
0

ActionController::InvalidAuthenticityToken

skip_before_action :verify_authenticity_token
#add it inside the controller
or
. check authenticity token is being sent with AJAX calls if using form_for helper with remote: true option.If not you can include the line <%= hidden_field_tag :authenticity_token, form_authenticity_token %> withing the form block

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................