I use the program, and when the user changes the password, the site registers them. I read online that adding sign_in will do the trick, but it doesnβt work, and the user will log out when changing the password. Here is my code
if @user.errors[:base].empty? and @user.update_attributes(params[:user]) sign_in(current_user, :bypass => true) flash[:success] = "User account has been successfully updated" redirect_to edit_user_path(params[:site_id], @user) else render :action => :edit, :status => :unprocessable_entity end
I assumed this would work, but no matter what I do, I still log out of the system .... something is missing or maybe one setting is disabled ... any help would be appreciated
ruby ruby-on-rails ruby-on-rails-3 devise
Trace Jul 19 '12 at 19:13 2012-07-19 19:13
source share