devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Models::Confirmable::ClassMethods#send_confirmation_instructions

Attempt to find a user by its email. If a record is found, send new
confirmation instructions to it. If not, try searching for a user by unconfirmed_email
field. If no user is found, returns a new user with an email not found error.
Options must contain the user email

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/models/confirmable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Models--Confirmable--ClassMethods-send_confirmation_instructions-for-pr


# Commit to git

git add lib/devise/models/confirmable.rbgit commit -m "better docs for Devise::Models::Confirmable::ClassMethods#send_confirmation_instructions"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Devise--Models--Confirmable--ClassMethods-send_confirmation_instructions-for-pr

hub pull-request


# Celebrate!