Barcode.Ruby — Easy 2 Steps

Pure Ruby barcode library — Sinatra REST API

Ruby + Sinatra
1 Create barcode
qr = BarcodePao::QRCode.new("png")
2 Draw!
qr.draw(code, 300)
# Step 1: Create barcode
qr = BarcodePao::QRCode.new("png")
# Step 2: Draw!
qr.draw(code, 300)
base64 = qr.get_image_base64

Preview

PNG
Enter data and it will render automatically