day work towards ios and qr optimization

This commit is contained in:
2012-12-11 00:48:29 +01:00
parent 7d0afde69f
commit 7f27d043eb
18 changed files with 287 additions and 253 deletions
+4 -3
View File
@@ -30,7 +30,8 @@ class DashboardController < ApplicationController
def table_qr_image
@table = Table.find(params[:table_id])
#code = [get_the_app_url, {table_id: @table.id}.to_json].join('?')
code = "#{scan_url}?json=#{{table_id: @table.id}.to_json}"
code = "q.qwaiter.nl/s?t=#{@table.id}"
size = RQRCode.minimum_qr_size_from_string(code)
respond_to do |format|
format.html
format.svg { render :qrcode => code, :level => :l, :unit => 10, table_number: @table.number, qcontainer: true }
@@ -42,8 +43,8 @@ class DashboardController < ApplicationController
code = 'qwaiter.com'
respond_to do |format|
format.html
format.png { render qrcode: code, level: :h, unit: 10, size: 12}
format.svg { render qrcode: code, level: :h, unit: 10, size: 12}
format.png { render qrcode: code, level: :h, unit: 10, size: 7}
format.svg { render qrcode: code, level: :h, unit: 10, size: 7}
end
end
+1 -1
View File
@@ -35,7 +35,7 @@ class UserController < ApplicationController
headers['Access-Control-Allow-Headers'] = '*'
end
def home
def index
handle_message_params
end