From: Kent Friis Date: 2009-08-23T08:05:05+09:00 Subject: Re: HTML posting to ruby script? Den Sat, 22 Aug 2009 15:07:33 -0500 skrev Brad Mr: > Ok new to Ruby. > > I have an HTML form that I want a user to enter data, and when the > SUBMIT button is pressed, the HTML POST (with the data) goes to a Ruby > script to process the data (no web server running) into ruby variables > to be used in other Ruby Scripts. > > Again this is meant to be able to run offline because ultimately this is > all going into the "Titanium" app runtime (Similar to adobe AIR, but > Ruby and Python runtimes are included), and like AIR can run on any > platform. > > In short it becomes a multi-platform desktop app using HTML as the GUI. > > Question is, how do I get that ruby script to accept the POST and pull > the data out to make the variables? You need a webserver. Can be a simple one, can even be written in Ruby, but you do need one. /Kent -- "The Brothers are History"