Ruby on Rails
Tuesday, January 23, 2018
If you want to send card data through a device, I don't think ruby will do that for you, instead you have to delegate this to browser, because it must be a client process and ruby works from server side.
-- Everything that you have to do by client side, you should do through browser API and to use ruby (or any backend lang) to process these data.
Em terça-feira, 23 de janeiro de 2018 04:46:01 UTC-3, Adi bm escreveu:
Em terça-feira, 23 de janeiro de 2018 04:46:01 UTC-3, Adi bm escreveu:
I have a Ruby on Rails web app via which I want to access my smart card reader connected to my PC via a USB.
The idea is to press a button in the web app to initiate read action in the card reader.[I have a ruby script to read the data serially].I however want to extend the functionality to the web app,i.e. when the user clicks the read button on the webapp the card details are read via the card reader and displayed in the web page(Ruby on Rails web app). I am not sure on how to go about it. These are some of the "sources" that I have encountered online which might be the possible way:
WebUSB API
chrome.usb
libusbAnyone who has previously done the same please guide me on how to go about it.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/649bcc1f-ccae-426b-be09-c40f80bbfb2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment