[Rails] @params["aKey"] and multiple aKeys in request
Gábor Sebestyén
segabor at gmail.com
Thu Mar 9 09:55:45 GMT 2006
It's weird. HTML standard allows using a key more than once. I checked
this in irb and Ruby's CGI::parse(..) parses my test cases in desired
way and returned key - value array pairs back.
myBook:~ segabor$ irb
irb(main):001:0> require 'cgi'
=> true
irb(main):002:0> CGI::parse("url=a&url=b")
=> {"url"=>["a", "b"]}
As far as I know RoR inherits Ruby's cgi features and uses CGI::parse
to handle incoming queries. So what make it wrong them?
Gábor
More information about the Rails
mailing list