I”m using Ruby on Rails 3.0.4 / Devise 1.4.2 / MySQL / Apache/Passenger / FreeBSD
The problem occurs on user sign up at email confirmation page. At the same time, confirmation email is sent to the new user and if you click on the confirmation link, the confirmation and user sign in work fine.
models/user.rb:
devise :database_authenticatable, :registerable, :trackable, :recoverable, :confirmable, :validatable, :lockable, :timeoutable
What could it be? Any ideas welcome.
The answer is:
active?method works only for Devise version less than 1.4, and for versions newer than 1.3confirmed?should be used.I generated Devise scripts with Devise 1.1.7, then upgraded to 1.4.2 – and the problem appeared. I downgraded to 1.3.0 and that was the cure.