<%- columns.each do |p| -%> <%- end -%> <%- records.each_with_index do |record, i| -%> <%- tr_class = (i % 2 == 0) ? "even-record" : "" tr_class += " #{list_row_class(record)}" if respond_to? :list_row_class -%> <%- columns.each do |p| -%> <%- end -%> <%- end -%>

<%= column_label(p) %>

<%= column_value(record, p) %>
<%= link_to_new 'New' %>