Can you use hashes instead of arrays? That would be a much more natural use:

  - cars.each do |car|
     - car.each  do |attr,val|
        %p
           %b= attr
           = val

Excuse me for uneven spacing, am not at my desktop.
El feb 2, 2016 6:27 AM, "Torsten Schrör" <torsten.schr...@gmail.com>
escribió:

> Hello,
>
> i have the following problem.
> i try to build dynamical tables on haml with an set of fields in an array.
>
> this meens i have the array
> h['car']=Array[Array['title',fieldname'], Array['title2',fieldname2']]
>
>
> i the haml i am able to do an
>
> cars.each do |c|
>   #{c.fieldname}
>   #{c.fieldname2}
>
>
> but i am not able to address this fields by reading the arry for the
> possible fields
>
>
> can everyone help?
>
>
> thanks
> torsten
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to haml+unsubscr...@googlegroups.com.
> To post to this group, send email to haml@googlegroups.com.
> Visit this group at https://groups.google.com/group/haml.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haml+unsubscr...@googlegroups.com.
To post to this group, send email to haml@googlegroups.com.
Visit this group at https://groups.google.com/group/haml.
For more options, visit https://groups.google.com/d/optout.

Reply via email to