Rails view to list users in a zebra-striped table
Rails has a built in method, cycle, which will cycle between two more more options for you, so you don't have to manage the "Even"/"Odd" selection.

&lt;% @patients.each do |patient| %&gt;
  &lt;%= content_tag :tr, :class =&gt; cycle('Even', 'Odd') do %&gt;
    &lt;%= content_tag :td, link_to(patient.id, patient) %&gt;
    &lt;% [:username, :first_name, :last_name, :email, :active, :disabled].each do |property| %&gt;
      &lt;%= content_tag :td, patient.user.send(property) %&gt;
    &lt;% end %&gt;
    &lt;td&gt;
      &lt;ul class="Horizlist"&gt;
        &lt;%= content_tag :li, link_to('Detail', patient) %&gt;
      &lt;/ul&gt;
    &lt;/td&gt;
  &lt;% end %&gt;
&lt;% end %&gt;


If you happen to use Haml, it looks quite nice. :)

- @patients.each do |patient|
  %tr{:class =&gt; cycle('Even', 'Odd')}
    %td= link_to(patient.id, patient)
    - [:username, :first_name, :last_name, :email, :active, :disabled].each do |property|
      %td= patient.user.send(property)
    %td
      %ul.Horizlist
        %li= link_to('Detail', patient)