I am sending a multidimensional array using the post method given by the Rack::Test like
post "#{url}.json",:data => [["Company","Website"],["this is the dummy text, with,comma","www.technology.com"],["some company","www.url.com"]]
But in my controller when check my params params[:data] i am receiving it as a single dimensioned array ["Company", "Website", "this is the dummy text, with comma", "www.technology.com", "some company", "www.url.com"]
But i want it to retain it’s property as a multi-dimensional array. I need help to do this.
The Rack::Test methods all have the same signature… and the second param is a hash of params
i.e.
This is because they’re just URL params – which are typical key/value structures (i.e. a hash)
Why do you need it to be a multi-dimensional array?
EDIT: oh, I get it – you have a single hash with one key (:data)
If it’s still causing you grief you could explicitly call to_param in there