Actioncontroller::invalidauthenticitytoken 레일 단계에 양식

코드 예제

0
0

ActionController::InvalidAuthenticityToken 레일 경우 제출 양식

// 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
..................................................................................................................