Can [ruby] on rails do this --- crazy request

Rails has nothing to do with this (being the server and all, no interaction with client computers). Java applets work because they are run on the client. Javascript is not allowed to do much in this space, last I checked, so you’re basically stuck with a Flash or Java app embedded in the page that can post back to the server.