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
@markdown = RDiscount.new(@grito.text)
- haml :grito
+ haml :grito, :layout => :layoutmini
end
error do