Home

Awesome

goqr Build Status Code Climate

QR codes for ruby/rails using goqr.me API

patriciomacadden/goqr

Installation

Add it to your Gemfile and run the bundle command:

gem 'goqr'

Getting started

In rails, you can generate a QR code just using the goqr helper method:

<%= image_tag goqr(data: 'Hi! goqr is awesome!', size: '128x128') %>

Available options

All available options are the specified by goqr API documentation.

Gotchas

<%= image_tag goqr(data: 'Just text') %>

<%= image_tag goqr(data: 'http://patriciomacadden.com.ar') %>
<%= image_tag goqr(data: 'TEL:+542211234567') %>
<%= image_tag goqr(data: 'SMSTO:+542211234567:Hi!') %>

Contributing

  1. Fork it
  2. Create a branch (git checkout -b my_awesome_branch)
  3. Commit your changes (git commit -am "Added some magic")
  4. Push to the branch (git push origin my_awesome_branch)
  5. Send pull request