Plugins - QRCode

StarAdd to favorites

QRCode for Rails

A plugin for Ruby on Rails to generate QRCode(QRコード).

About

This plugin use javascript to generate QRCode. The original javascript program is developed by Kazuhiko Arase. (http://www.d-project.com/qrcode/index.html)

Usage

  • In your rails project, install the plugin by following command: ./script/plugin install http://qrcode-rails.googlecode.com/svn/trunk/plugins/qrcode

  • Add javascript include tag in HTML header: <%= javascriptincludetag :defaults %>

  • Add following funtion to where you want to generate QRCode. <%= qrcode('http://www.google.com/', 2, 'my-qrcode') %>

    • The first parameter is URL
    • The second optional parameter is pixel size.
    • The third optional parameter is ID of the generated div

Example

You can find source of an example project here: http://qrcode-rails.googlecode.com/svn/trunk/examples "sample screen"

License

Released under the MIT license.

Author

  • Francis Chong - siuying [at] reality [dot] hk

siuying

http://code.google.com/p/qrcode-rails/source

http://qrcode-rails.googlecode.com/svn/trunk/plugins/qrcode

Rails' (MIT)

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Assets

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?