With a list of ActiveRecord objects, is there a way in HAML to output
one cell per iterated object, and two per table row?  Something
equivalent to this in RHTML:

    <% @administrator.each_with_index do |administrator, i| %>
      <%= "<tr>" if i % 2 == 0 %>
        <td>
          <%= administrator.full_name %>
          <br/>
          <%= mail_to administrator.email %>
        </td>
      <%= "</tr>" unless i % 2 == 0 %>

I've fought with this for a while with no luck.  Any input would be
greatly appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to