Hi --

On Sat, 21 Jul 2007, Divya Badrinath wrote:

> i have a database with some 10 records each containing 2 columns,
> sno,name,city.
>
> I want to push this into an array of arrays.
> i see that Ruy doesnt support multi-dimensional arrays.
> Any ideas of how to do it?

Just use arrays as array elements:

[ [1,2,3], [4,5,6], [7,8,9] ]

for example.


David

-- 
* Books:
   RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242)
   RUBY FOR RAILS (http://www.manning.com/black)
* Ruby/Rails training
     & consulting:  Ruby Power and Light, LLC (http://www.rubypal.com)