forked from ariejan/firefly
-
Notifications
You must be signed in to change notification settings - Fork 0
QR Code support
ariejan edited this page Jan 26, 2011
·
2 revisions
Firefly supports QR Codes. The QR Code contains the original short URL, so when scanned people will open the short URL and be redirected to the target web site.
As of version 1.2.0 of Firefly, QR Code support is disabled by default. If you want to use QR Codes install the following gems:
barby
png
Or, add them to your Gemfile:
gem 'barby'
gem 'png'
When Firefly is able to load those gems, QR Code support will be enabled automatically (you may need to restart your server, though).
Using QR Codes is simple. Given you have a short URL, like http://aj.gs/5 you can get the QR Code by adding the extension .png
to the URL.
http://aj.gs/5 => http://aj.gs/5.png
An example: