devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Controllers::Helpers#sign_in_and_redirect

Sign in a user and tries to redirect first to the stored location and
then to the url specified by after_sign_in_path_for. It accepts the same
parameters as the sign_in method.

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/controllers/helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Controllers--Helpers-sign_in_and_redirect-for-pr


# Commit to git

git add lib/devise/controllers/helpers.rbgit commit -m "better docs for Devise::Controllers::Helpers#sign_in_and_redirect"


# 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--Controllers--Helpers-sign_in_and_redirect-for-pr

hub pull-request


# Celebrate!