lib/generators/bootup/templates/authentication/controllers/user_sessions_controller.rb.erb in bootup-0.0.3 vs lib/generators/bootup/templates/authentication/controllers/user_sessions_controller.rb.erb in bootup-0.0.4

- old
+ new

@@ -6,10 +6,10 @@ end def create respond_to do |format| if @user = login(params[:email],params[:password]) - format.html { redirect_back_or_to(@user, :notice => 'Login successful.') } + format.html { redirect_back_or_to(user_path(@user), :notice => 'Login successful.') } format.xml { render :xml => @user, :status => :created, :location => @user } else format.html { flash.now[:alert] = "Login failed."; render :action => "new" } format.xml { render :xml => @user.errors, :status => :unprocessable_entity } end