]> git.r.bdr.sh - rbdr/grita/commitdiff
Fixes QR Codes. main
authorBen Beltran <redacted>
Mon, 14 Nov 2011 16:07:30 +0000 (10:07 -0600)
committerBen Beltran <redacted>
Mon, 14 Nov 2011 16:07:30 +0000 (10:07 -0600)
grita.rb

index 180fe194dab08493c50658acfe1b67f6cd313859..cefcc909730834fdc0a00922947be6b9dcfdedb5 100644 (file)
--- a/grita.rb
+++ b/grita.rb
@@ -27,7 +27,7 @@ get '/qr/:grito.png' do
    rpr_filepath = tmpfile.path + '.png'
 
    RQR::QRCode.create do |qr|
    rpr_filepath = tmpfile.path + '.png'
 
    RQR::QRCode.create do |qr|
-     qr.save('http://#{request.host}/'+params[:grito], rpr_filepath)
+     qr.save("http://#{request.host}/"+params[:grito], rpr_filepath)
    end
 
    buffer = File.open(rpr_filepath).read
    end
 
    buffer = File.open(rpr_filepath).read