update base controllers

This commit is contained in:
Yan
2018-02-23 14:45:53 +06:30
parent 643a9d71be
commit 25a212bb70
10 changed files with 14 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
class HomeController < ApplicationController
include LoginVerification
# layout "application", except: [:index, :show]
# skip_before_action only: [:index, :show, :create, :update, :destroy]
def index
# @employees = Employee.all_emp_except_waiter.order("name asc")
@employees = Employee.all.order("name asc")
@login_form = LoginForm.new()
@login_form = LoginForm.new()
render "layouts/login_dashboard", layout: false
end
@@ -56,7 +57,7 @@ class HomeController < ApplicationController
render :index
end
else
redirect_to origami_root_path, :notice => "Username and Password doesn't match!"
redirect_to root_path, :notice => "Username and Password doesn't match!"
end
end