<% attributes.each do |attribute| -%> <td><%%= model.<%= attribute.name %> %></td> <% end -%>