According with commit https://github.com/plataformatec/devise/commit/eb640ed344fb5e227e82b1f3a914ca9fabb938e0, confirmation tokens no longer digests
Updated How To: Override confirmations so users can pick their own passwords as part of confirmation activation (markdown)
Treat @confirmable as the model it is. See http://stackoverflow.com/questions/25176010/error-undefined-method-add-error-on-for-confirmationscontrollerclass-rails4-d for the confusion the previous version caused.
Revert 8ce08ba96f2367c64286a1065b6334ab1566e120 ... 0b7da1683d8b30e175a1b41f47afaf92bb35989f on How To: Override confirmations so users can pick their own passwords as part of confirmation activation
There is no need to define a proxy method. Just call the new method name!
Revert faa4a4571d0bf654f2699ecc6f43d837b3054c8a ... 5b86103af6f9aa323207f4fae0cf34d30d8380f2 on How To: Override confirmations so users can pick their own passwords as part of confirmation activation
Removing the `attempt_set_password` method from the Rails 2.3 + Devise 1.0 section because it would always generate a password even if the password confirmation didn't match
@confirmable stays valid when the password is blank, leting confirmation to happen. Needed to reuse password_blank? to unsure validation.
Changes for Rails 4
Confirmation token should be unique. If there are more than 1 existing user it will violate the constraint with the same 'Grandfathered account' token and migration won't pass. It works without it or constraint should be created after update_all.
Remove title from body.
roll my changes back. would help if I'd read that the Rails 3 and Devise 2 were just modifications to the Rails 3 and Devise 1.2 instructions. Sigh.
Added code to change routes when using Rails 3 and Devise 2
Explicitly set self.resource as @confirmable to handle a re-confirmation attempt. If a User is already confirmed, and attempts to GET the resource for setting the password and confirming, the confirmation_token is unable to find a valid User object, and therefore throws an ActionView::TemplateError when trying to render devise_error_messages! with an undefined method `errors` for nil:NilClass.
Add example for testing controller inheritance (based on 9bc8950)
Inherit ConfirmationsController from Devise::ConfirmationsController; otherwise, reset password email template will be used for the mailer.
Remove link to non-existent page (was it renamed?)
minor spelling and grammar
Modify url for two-step confirmation how-to
minor edit re alternate method