Author : Derek Perez

This library is designed to support streaming barcode information, from GBarcode, straight to the web browser using data urls (http://en.wikipedia.org/wiki/Data_URI_scheme). This is ideal for no-write filesystem scenarios. It also supports persisting the barcodes to disk, but this is an optional function. By default, data urls are used. Barcode generator makes generating/displaying barcodes for certain alphanumeric ids a piece of cake. This way we can generate any barcode type which Gbarcode -> Gnome Barcode project supports.

FAQ

Why did you create this plugin?

barcode_generator is an awesome plugin, however, it does not interact very well with non-write filesystem style servers, ie: Heroku, or EC2. In the cloud, you can't be writing files to the filesystem (usually) directly, so I thought it was necessary to write a plugin that could use data urls (http://en.wikipedia.org/wiki/Data_URI_scheme) to stream the barcode to the browser, with no filesystem writes whatsoever.

Why didn't you just fork his plugin?

I substantially re-wrote how the plugin displays barcodes, and I didn't want to have that break any pre-existing uses he was implementing it with.

Is your API compatible with barcode_generator?

Yes, it should work identically.

USAGE:

its as simple as saying:
<%= to_barcode 'FJJ4JD' %>

This will generate a barcode for FJJ4JD in BARCODE_39 format with default width
and height and include it in the view.

Options Options Options:

To customize your barcodes, you can optionally pass following information in your views