On 17/08/2009, at 1:48 PM, Ryan Bigg (Radar) wrote:
> Is it possible to change that parameter to become datasource?
> key1=value1&key2=value2?
That would represent a different dataset (flat, rather than nested).
Standard Rails-esque parameters would look like this:
> Rack::NestedParams.new(lambda {}).parse_query_parameters
> "tgz[key1]=value1&tgz[key2]=value2&normalparam1=normalvalue1"
> => {"normalparam1"=>"normalvalue1", "tgz"=>{"key1"=>"value1",
> "key2"=>"value2"}}
Cheers,
Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---