Just made a roll back on a migration that added columns for devise_invitable and deleted the migration. I am now receiving the following error when trying to login to my app.

 undefined local variable or method `invitation_token' for #<User:0$%$%$%@@@@@>

I cant seem to find invitation_token anywhere.

有帮助吗?

解决方案

You will need to remove ':invitable' from the devise callback in your User model. Without the columns, the gem will not work.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top