Using Rails 4 and Devise 3.1.0 on my web app. I wrote a Cucumber test to test user sign up; it fails when the \"confirm my account\" link is clicked from the e-mail.
So upgrading to Devise 3.1.0 left some 'cruft' in a view that I hadn't touched in a while.
According to this blog post, you need to change your Devise mailer to use @token instead of the old @resource.confirmation_token.
Find this in app/views/ and change it to something like:
Welcome <%= @resource.email %>!
You can confirm your account email through the link below:
<%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @token) %>
This should fix any token-based confirmation problems you're having. This is likely to fix any unlock or reset password token problems as well.