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...
发布评论
评论(3)
我都用过谷歌和宝石。
在控制器中定义@url。使用谷歌API。
如果出于某种原因您想让 gem 在您的服务器上执行此操作,那么以下内容很好。
I've both used google and the gem.
define @url in controller. Use google API.
If for some reason you want to have a gem do it on your server the following is good.
刚刚发布了一个 gem,如果您使用的是 Rails 3,这将使这变得非常容易。
请按照安装文档进行操作:
https://github.com/samvincent/rqrcode-rails3
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
请参阅:http://code.google.com/apis/chart/ infographics/docs/qr_codes.html。
See: http://code.google.com/apis/chart/infographics/docs/qr_codes.html.