We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Updated How To: Email only sign up (markdown)
The path after confirming email needs to be relative and not absolute therefore it is edit_password_path(...) instead of edit_password_url(...). edit_password_url(...) further produced weird bugs in production when I used it and I ended up being forwarded to a weird localhost URL which of course did not work.
Add new approach and explain old approach is deprecated
Revert latest change
Do not update user attributes if password and password_confirmation don't match (short circuit)
adjust to use new `input_html => { value: @original_token }` syntax.
When the user clicked the link confirmation the only parameter is the token
Refactor ConfirmationsController for Rails 4 and fix bug in it
Digested token only needed in the first instance unless show.html.haml is altered
fixed view and controller for Rails 4/Devise 3, now it is working
Missing closing parenthesis for update_attributes
Rails 4 link
Minor formatting tweaks on my previous edits
Add Rails 4 updates
Prevent hijacking of already confirmed accounts
When working with this setup I discovered that once I person has clicked a confirmation link the token will no longer be valid and will return a nil object, this is my addition for fixing this problem.
Add syntax highlighting to code samples
re-arrange the introductory text so the credit comes last
re-write the introductory text for clarity
added except in update_attributes for confirmation_token. Writing it was triggering a mass assignment error, which arguably makes sense as the user has no reason to be setting the confirmation token.
Never mind, I guess it calls super
Noticed that it used resource_class.confirm_by_token rather than resource_class.find_by_confirmation_token in app/controllers/devise/confirmations_controller.rb
Re-write text a bit to clarify -- no change to code.
Filename should be confirmations_controller.rb
remove extraneous reference to sessions controller and remove mention of probbaly optional method in model
change title to more descriptive objective