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.
Edit
git clone [email protected]:plataformatec/devise.git
cd devise
open lib/devise/controllers/helpers.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Devise--Controllers--Helpers-sign_in_and_redirect-for-pr
# Commit to gitgit add lib/devise/controllers/helpers.rbgit commit -m "better docs for Devise::Controllers::Helpers#sign_in_and_redirect"
# Open pull requestgem 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!