From: "Bermejo, Rodrigo" Date: 2003-11-18T09:36:10+09:00 Subject: Re: eRuby and URL rewriting Eric Schwartz wrote: >"Bermejo, Rodrigo" writes: > > >>cgi.query_string.split("&").each {|x| p x } >># "RUBYRULZ " >>#"rubyrulz" >> >> > >Actually, it's: > >irb(main):002:0> cgi.query_string.split("&").each {|x| p x } >"key=RUBYRULZ" >"key2=rubyrulz" > >I'm sure you just meant that as an example of how to access the query >string directly, > Yeah a mistake...I'm not as cleaver as irb =) > but FYI, it's broken in other ways too-- modern >browsers are allowed to use ';' to separate variables in a GET >request. > Oh, I did know it .....modern browsers like ... ? ...just to be aware of >In fact, I believe it is now the preferred form. Much >friendlier to do: > >cgi.keys.each { |key| p cgi[key] } > Thanks > >anyway :) > >-=Eric > > BTW, I really don't understand why cgi['query'].class => Array ? -Ronnie.