update base controllers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user