Make section table view work request and event based
This commit is contained in:
@@ -7,7 +7,8 @@ class DashboardController < ApplicationController
|
||||
|
||||
# Testing action
|
||||
def select_qrcode
|
||||
@tables = Table.all.sample(2) | List.active.map(&:table)
|
||||
#@tables = Table.all.sample(2) | List.active.map(&:table)
|
||||
@tables = Supplier.first.tables.sample(2) | List.active.map(&:table)
|
||||
render layout: 'phone'
|
||||
end
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class UserController < ApplicationController
|
||||
end
|
||||
|
||||
# POST /user/create_list {table_id: 1234}
|
||||
#DEPRICATED
|
||||
#DEPRICATED, see order_selected_products, this one now handles list creation as well
|
||||
def create_list
|
||||
render nothing: true and return unless current_user.present?
|
||||
@table = Table.find(params[:table_id])
|
||||
|
||||
Reference in New Issue
Block a user