User foundation setup
This commit is contained in:
@@ -8,8 +8,11 @@ class DashboardController < ApplicationController
|
||||
# Testing action
|
||||
def select_qrcode
|
||||
#@tables = Table.all.sample(2) | List.active.map(&:table)
|
||||
@tables = Supplier.first.tables.sample(2) | List.active.map(&:table)
|
||||
render layout: 'phone'
|
||||
@tables = Supplier.first.tables.sample(5) | List.active.map(&:table)
|
||||
respond_to do |format|
|
||||
format.html { render layout: 'phone' }
|
||||
format.json { render json: @tables.to_json }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user