lib/login_system.rb
# Store the URI of the current request in the session.
# We can return to this location by calling #redirect_back_or_default.
# Only store html requests so we don't redirect a user back to and rss or xml feed
Store the URI of the current request in the session.
We can return to this location by calling #redirect_back_or_default.
Only store html requests so we don't redirect a user back to and rss or xml feed
Store the URI of the current request in the session . We can return to this location by calling #redirect_back_or_default . Only store html requests so we don ' t redirect a user back to and rss or xml feed
def store_location
    if request.format == :html
      session[:return_to] = request.request_uri
    end
  end
def store_location if request . format == :html session [ :return_to ] = request . request_uri end end
Store the URI of the current request in the session.
Store the URI of the current request in the session .