devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Controllers::StoreLocation#stored_location_for

Returns and delete (if it's navigational format) the url stored in the session for
the given scope. Useful for giving redirect backs after sign up:

Example:

  redirect_to stored_location_for(:user) || root_path

Source | Google | Stack overflow

Edit

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

cd devise

open lib/devise/controllers/store_location.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Controllers--StoreLocation-stored_location_for-for-pr


# Commit to git

git add lib/devise/controllers/store_location.rbgit commit -m "better docs for Devise::Controllers::StoreLocation#stored_location_for"


# 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--StoreLocation-stored_location_for-for-pr

hub pull-request


# Celebrate!