User foundation setup

This commit is contained in:
2014-03-26 13:17:34 +01:00
parent 6c2427e082
commit 4e75c72097
87 changed files with 861 additions and 120 deletions
+5 -2
View File
@@ -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