remove turbolink in backend and update logout

This commit is contained in:
Yan
2017-10-30 18:51:05 +06:30
parent da0558b5ef
commit 35161aae91
5 changed files with 7 additions and 5 deletions

View File

@@ -84,7 +84,8 @@ class HomeController < ApplicationController
# clear in employee session
Employee.logout(session[:session_token])
session[:session_token] = nil
redirect_to root_path
# redirect_to root_path
render :json => {:status=> "Success", :url => root_path }.to_json
end
private