diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 18:48:22 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-04 18:48:22 -0500 |
commit | 28f7378d7d2bc2d79fa52f3dcedb734a543f69be (patch) | |
tree | 8246f22faa17825c320c9e4793c0e6bcfce73ca8 /app/controllers/sessions_controller.rb | |
parent | e6b04ece9e8b986cc7704c926c48d2c729a9f2e1 (diff) |
fix SessionsController#create
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r-- | app/controllers/sessions_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index a74cbd3..c3ff395 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -13,7 +13,7 @@ class SessionsController < ApplicationController respond_to do |format| if @user && @user.authenticate(params[:session][:password]) sign_in @user - redirect_to root_path + format.html { redirect_to root_path } else format.html { render action: 'new' } format.json { render json: @user.errors, status: :unprocessable_entity } |