From: Gale CC Date: 2007-07-15T14:43:56+09:00 Subject: Re: Passing arguments to ruby script Gale CC wrote: > >> If you simply cannot, then raid its JS library, prototype.js, for >> high-level >> wrappers. There's simply no reason to call xmlHttp yourself, when >> libraries >> like prototype.js have taken care of all the hairy asynchronicity and >> networking issues for you. > > Firstly, I dont want to use Rails because I'm not writing a full fledged > web app, but rather something with a web interface and Ruby just happens > to be the scripting language. > Secondly, I guess I didnt phrase my question properly. I just want to > know a way to figure out how to "parse" and not "pass" arguments sent to > a script. I know I can send arguments using > "scriptname.rb?argument1=value1&argument2=value2", I just want to know a > way to parse those two values - argument1 and argument2 inside the > script scriptname.rb. Is there a way around ? > > Thanks, > Gale Nevermind I figured it out. I just need to access it using a cgi object- cgi.params['argument1'] -- Posted via http://www.ruby-forum.com/.