+get '/qr/:grito.png' do
+ tmpfile = Tempfile.new('tmp')
+ tmpfile.close
+ rpr_filepath = tmpfile.path + '.png'
+
+ RQR::QRCode.create do |qr|
+ qr.save('http://#{request.host}/'+params[:grito], rpr_filepath)
+ end
+
+ buffer = File.open(rpr_filepath).read
+
+ content_type 'image/png'
+ buffer
+end
+