Skip to content

Instantly share code, notes, and snippets.

@mariochavez
Created September 2, 2010 19:42
Show Gist options
  • Save mariochavez/562825 to your computer and use it in GitHub Desktop.
Save mariochavez/562825 to your computer and use it in GitHub Desktop.
<table>
<!-- aqui va thead -->
<tbody>
<%= render @hotels %>
</tbody>
</table>
En un archivo parcial llamado _hotel.html.erb:
<tr class="<%= cycle("first", "second") %>">
<td><%= hotel.name %></td>
<td><%= hotel.location %></td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment