From: Mario Antonetti Date: 2010-03-25T02:05:29+09:00 Subject: Re: call a ruby script from html --00151750e832b9173f04828eef1f Content-Type: text/plain; charset=ISO-8859-1 On Wed, Mar 24, 2010 at 10:56 AM, Richard Conroy wrote: > Not too sure what you are trying to do here. The fact that you are invoking > against your local system is a bit weird, and I dont think that is > workable. > Might work for locally loaded Javascript, but not in a HREF. > > If you are hitting a server, this can be made to work, as CGI (similar to > how > you would invoke against a PHP script), but CGI is not a popular way to > run Ruby web apps, and it is very poorly documented in general (its > eclipsed > by all the other methods). > > Again, your parameters would have to be appropriate for a query string, you > couldn't > rely on passing them in as command line arguments. > > For isntance: > > Search > > On Wed, Mar 24, 2010 at 4:28 PM, Mario Ruiz wrote: > > > I would like to call a ruby script from a html page passing a few > > parameters, something like: > > Search > > > > Anybody knows how to do it? > > > > Thanks. > > -- > > Posted via http://www.ruby-forum.com/. > > > > > > > -- > http://richardconroy.blogspot.com If the ruby script doesn't rely on being run on the server, you could try HotRuby: http://hotruby.yukoba.jp/ --00151750e832b9173f04828eef1f--