Samsinite/wing-ding-pong — Issue #148: QR Code Issue
Author: bigmac12
Created: 2012-01-25 19:52:06+00:00
State: open

Model:

```ruby
class Coupon < ActiveRecord::Base
require 'rqrcode'
require 'rqrcode_png'

image_accessor :qr_code

[snip]

# Here I was messing with the method for creating the QR Code.
def create_qr()
self.qr_code_string = RQRCode::QRCode.new('This is a test for the coupon QR codes', :size => 6, :level => :h).to_s
#qr_code_img = RQRCode::QRCode.new('http://www.google.com/', :size => 4, :level => :h ).to_img
#self.update_attribute :qr_code, qr_code_img.to_string
end
```