First Rails Application Request Form after Application Restart
After restarting the Rails application in production and submitting the login form for the first time, the application throws an "ActionController :: InvalidAuthenticityToken" error.
After submitting the first form, everything works fine.
The application only registers the action and controller parameters for the first request: {"action" => "create", "controller" => "user_sessions"}. All form parameters, including the authentication token, are not displayed, which explains the error message. Looking at this first form, submit a client side submission request, I have verified that the form was submitted correctly (all parameters posted correctly)
Performance tuning tuning: Rails 2.3.3, Apache2, Mongrel Cluster, default cookie session storage
The local development environment doesn't have the same problem.
No one has answered this question yet
Check out similar questions: