On 02/10/2011 11:00 PM, Mohamed Lrhazi wrote:
> Sorry am confused... it's end of day
>
> This does seem to flatten my array:
>
> $myarray = [ ["a","b"],["c","d"] ]
>
> While this does not:
>
> $myarray1=["a","b"]
> $myarray2=["c","d"]
>
> $myarray = [ $myarray1,$myarray2 ]
>
> Thanks.
Ye
Sorry am confused... it's end of day
This does seem to flatten my array:
$myarray = [ ["a","b"],["c","d"] ]
While this does not:
$myarray1=["a","b"]
$myarray2=["c","d"]
$myarray = [ $myarray1,$myarray2 ]
Thanks.
--
You received this message because you are subscribed to the Google Group
Please ignore... was describing the wrong array... this var works as expected.
On Thu, Feb 10, 2011 at 4:44 PM, Mohamed Lrhazi wrote:
> I defined a var like so:
>
> $myarray = [ ["a","b"],["c","d"] ]
>
> Then in a template I tried something like:
>
> <% myarray.each do |element| -%>
> <%= elemen