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