Rails and webcams

hi! does anybody know how to capture images from a webcam using ruby on
rails?

I need to know if there is a code available for connecting to a webcam
using ruby and if it is possible to capture images automatically once
connected.

You'll need some kind of client side technology for that, e.g. Flash
(which may or may not be able to interface with a webcam -- I really
don't know).

RoR runs on the server, and is restricted to communicating with that
webcam-client over http (or some web service layer on top of http),
i.e. accept requests/uploads and serve contents.

HTH,
Isak