Well, I figured out what Rails USED to use:
CGIMethods.parse_query_parameters(query_string)
This seems to work fine, but the method is deprecated as of Rails
1.2. Apparently I'm supposed to be using
parse_form_encoded_parameters, but I can't find that method. Any ideas?
On Mar 6, 2007, at 2:43 PM, Chris Abad wrote:
Anyone happen to know the method Rails uses to transform a GET
query string into a params hash? I've written my own, but it
doesn't support nested hashes. I specifically need something that
will properly convert something like this:
?client[email]=email&client[name]=name
info this:
{ :client => { :email => 'email', :name => 'name' } }
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby