# Card reader or bar code reader in ruby ? URGENT HELP

**URL:** <https://www.ruby-forum.com/t/card-reader-or-bar-code-reader-in-ruby-urgent-help/132734>\
**Category:** Ruby\
**Created:** [March 24, 2008, 7:37am UTC](https://www.ruby-forum.com/t/card-reader-or-bar-code-reader-in-ruby-urgent-help/132734 "2008-03-24T07:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [March 24, 2008, 7:37am UTC](https://www.ruby-forum.com/t/card-reader-or-bar-code-reader-in-ruby-urgent-help/132734/1 "2008-03-24T07:37:04Z")

</div>

hai all

i am new to ruby on rails

how to manipulate (read/write) card readers (or bar code reader ) in  
ruby program ?  
give me any sample code or tutorials or tools or etc (whatever).

i am new to this card reader category  
its very urgent

thank you .

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [March 24, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/card-reader-or-bar-code-reader-in-ruby-urgent-help/132734/2 "2008-03-24T15:12:21Z")

</div>

On Sun, Mar 23, 2008 at 11:36 PM, Pokkai D.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> how to manipulate (read/write) card readers (or bar code reader ) in  
> ruby program ?

The input from card readers and bar code readers attached to a PC  
looks like keyboard input. So in a browser, you would have a page  
with a form, position the cursor in a field and then swipe the card or  
scan the barcode, and the field is populated with the data.

If, in the case of the card reader, there’s multiple pieces of  
information  
encoded on the strip, you need to parse that, with JavaScript or after  
the form is submitted. Straightforward but application-dependent.

HTH!
