X-Git-Url: https://git.r.bdr.sh/rbdr/grita/blobdiff_plain/b7be4f63119c71b07eacc9af9e6a15db63ef65ea..bcff5f34f5dbc66403377746bc9753cd3806dc43:/grita.rb diff --git a/grita.rb b/grita.rb index 406dde7..76f1c93 100644 --- a/grita.rb +++ b/grita.rb @@ -28,7 +28,7 @@ get '/qr/:grito.png' do rpr_filepath = tmpfile.path + '.png' RQR::QRCode.create do |qr| - qr.save('http://grita.heroku.com/'+params[:grito], rpr_filepath) + qr.save('http://#{request.host}/'+params[:grito], rpr_filepath) end buffer = File.open(rpr_filepath).read @@ -47,7 +47,7 @@ get '/:grito' do @markdown = RDiscount.new(@grito.text) - haml :grito + haml :grito, :layout => :layoutmini end error do