没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
oss.trustie.net/open_source_projects | 主页 > 开源项目社区 > qrcode-rails |
qrcode-rails
|
0 | 0 | 19 |
贡献者 | 讨论 | 代码提交 |
QRCode for Ruby on RailsA plugin for Ruby on Rails to generate QRCode (QRコード).
AboutThis plugin use javascript to generate QRCode. The original javascript program is developed by Kazuhiko Arase. (http://www.d-project.com/qrcode/index.html)
If you want to generate image directly from rails, check my another Rails QRCode Generator (its git repository)
UsageIn your rails project, install the plugin by following command: ./script/plugin install http://qrcode-rails.googlecode.com/svn/trunk/plugins/qrcodeAdd javascript include tag in HTML header: Add following funtion to where you want to generate QRCode. - Add following funtion to where you want to generate QRCode.
The first parameter is URL The second optional parameter is pixel size. The third optional parameter is QR Code type number, 1-10. Higher the type number, more data can be stored (max 976-2192 bits, depends on error correction level). Default 4. (For the relationship about adata size and type number, please refer to http://www.denso-wave.com/qrcode/vertable1-e.html) The 4th optional parameter is ID of the generated div ExampleYou can find source of an example project here: http://qrcode-rails.googlecode.com/svn/trunk/examples
I have package the sample program into a WAR, deploy it into any Web Container (e.g. Tomcat, Jetty, Glassfish ...etc) to see how it works!
Sample CodeSample Screen
LicenseReleased under the MIT license.
AuthorFrancis Chong - siuying at reality dot hk