In my application a hand scanner scans the barcode and sends the isbn13 as search parameter.Controller should receive this signal and search for the entered value.Basically, when a scanner signal is recieved a search for item id should performed.How can we implement this in rails, is there any library available in ruby ?
There are several libraries for generating barcodes, but I can't find one for reading barcodes. Doesn't the scanner do the reading for you?
"Barcodes on RubyForge":http://rubyforge.org/search/?type_of_search=soft&group_id=796&words=barcode
If your scanner is connected to the client PC, and Ruby on Rails is running on the server, then your problem isn't really a Rails problem. You need some way of making the scanner submit data to the server when it scans a barcode.
If you can't use a simple form for some reason, the scanner might come with some sort of activex / flash / java plugin which you could embed on a page. That way looks potentially more complicated though, also platform specific (especially if it's activex).
Thanks for your replies
I would also like to get help on how we can have a listener monitoring the port where the scanner signal will be available and collect the barcode and send that as an input to the search field.
Most scanners these days just emulate a keyboard, i.e. when you scan something, to the PC it looks like you just typed in the bar code number on a keyboard.
What make / model of barcode scanner are you using? Could you give us a URL to more info?
Consider the users and K.I.S.S. on the front end I say. You can get as fancy as you want on the server side after that.