On 27 November 2014 at 09:30, Patrick Yudi <li...@ruby-forum.com> wrote:
> maybe its too wide.. let me simplify.
> i have a ruby script that reads NFC tags:
>
> require 'nfc'
>
> ctx = NFC::Context.new
> dev = ctx.open nil
>
> loop do
>
> p dev.pool.to_s
>
> end
>
> par example the output in the terminal is 'c2 f3 44 12'.
>
> i also have a webform with a text field with label "id".
>
> how do i pass the output to id.text_field? or... is it possible?

Are you asking how to run a ruby script from the web browser, where
the script directly accesses  hardware on the computer?

Colin

-- 
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+unsubscr...@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/CAL%3D0gLuq5y1g0Y%3Dgq5fe4zcpuEKL%2BthZfmJNZmphTxVHt1N0Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to