Every form on my home page is showing a different authenticity token. The CSRF meta tag shows yet another authenticity token.
Shouldn't they all be the same?
I created a new Rails 4 project and all the tokens matched.
Every form on my home page is showing a different authenticity token. The CSRF meta tag shows yet another authenticity token.
Shouldn't they all be the same?
I created a new Rails 4 project and all the tokens matched.
I believe this was caused by fragment caching. If you're caching forms, the token will be cached along with the rest of the content. Two strategies for addressing this are: