Fix Invalid Authentication Token Error in Rails
How to fix ActionController: InvalidAuthentication Token error
?
If you use devise
gem and when you enter login page in your rails project, you get
Invalid Token
error, you thinking on controller
.
Try to fix this bug ;
- Open
application_controller.rb
then remove this line,
1
|
|
on your controller.
- Then add
1
|
|
But, this method not safe, so when you get like this bug, you can search and use ajax
for the solve it.
That’s all.
I hope helped to you .