search for: user_root_path

Displaying 2 results from an estimated 2 matches for "user_root_path".

2010 Nov 25
4
Devise sessions and load-balanced/multiple servers
...so requests to the website will alternately hit one server, or the other. My problem occurs when I try to register a new user. Everything goes fine, I get the confirmation email, I click the link, it hits the confirmation page and then goes directly to the sign in page, instead of proceeding to the user_root_path. The account IS marked as confirmed in the database though. I thought perhaps the default CookieStore for sessions was causing problems, so I tried the ActiveRecord store, with the same results. When I try the exact same app/code on my local machine, or on the cluster with only one of the servers...
2010 Sep 17
0
ruby's oauth2 grant_type
...ken_by_code(params[:code]) @user = User.find_for_accounts_oauth(access_token, signed_in_resource) if @user.persisted? && @user.errors.empty? sign_in @user set_oauth_flash_message :notice, :success redirect_to after_oauth_success_path_for(@user) #=> redirects to user_root_path or root_path else session[:user_accounts_oauth_token] = access_token.token render_for_auth #=> renders sign up view by default end end end and from User model class User < ActiveRecord::Base devise :database_authenticatable, :oauthable def self.find_for_accounts_o...