Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QR Code Generator in Rails [closed]

I am looking for help to implement a QR Code generator on my site. The site is built in Ruby on Rails. I have tried to use rqrcode but could not seem to get it to work. I would like to use the google chart API.

OVERVIEW:

A simple QR code generator. In the view, a user can pass in a string, the string is then stored, and then sent to the QR code generator script, at this point the resulting QR Code image should be displayed back to the user.

like image 943
user604586 Avatar asked Feb 20 '11 02:02

user604586


People also ask

Why is my QR code generator not working?

If your QR Codes are not working, it's most likely due to design elements. Some reader apps and phone cameras have difficulty scanning complex QR Codes. Below are a few important design elements to take into account. Make sure there is a significant contrast between the QR Code's foreground and background.

How do I reactivate QR code generator?

If you want to reactivate a specific QR Code, you need to upgrade the account the QR Code was created in. To upgrade, log in to your account and go to Account - Features & Pricing. It's not possible to reactivate a QR Code by creating and upgrading a new account.

Does generated QR code expire?

No, QR codes do not have an expiration date. The QR code has a Quick Link behind it. As long as the Quick Link is active, the QR code will continue to work.

Why QR code campaign has been disabled?

A QR Code campaign might be disabled for a number of reasons like – failed conversion rates, a decrease in engagement, or even wrongful usage. In such cases, your phone won't read the QR Code. A reliable QR Code generator, however, alerts the user of the message when the QR Code campaign has been disabled.


2 Answers

Just released a gem that makes this very easy if you're using rails 3.

Follow the installation documentation at: https://github.com/samvincent/rqrcode-rails3

like image 78
samvincent Avatar answered Nov 14 '22 02:11

samvincent


See: http://code.google.com/apis/chart/infographics/docs/qr_codes.html.

QR codes are a popular type of two-dimensional barcode. They are also known as hardlinks or physical world hyperlinks. QR Codes store up to 4,296 alphanumeric characters of arbitrary text. This text can be anything, for example URL, contact information, a telephone number, even a poem! QR codes can be read by an optical device with the appropriate software. Such devices range from dedicated QR code readers to mobile phones...

like image 28
Kevin Sylvestre Avatar answered Nov 14 '22 04:11

Kevin Sylvestre