Ruby on Rails Saturday, April 7, 2012

Apologies.

You're code has worked. 12 Records now show up. However the column
headings appear above each record, instead of just at the top.

<table width="500" border="1" align="center" class="gridtable" id="meh">
<tr id="table2">
<th height="26" scope="col">Username</th>
<th scope="col">Date Leaving</th>
<th scope="col">Date Submitted</th>
<th scope="col">Approved</th>
<th scope="col">Date Updated</th>
</tr>
<tr>
<% div_for holiday do %>
<td><%= link_to holiday.user.username, holiday %></td>
<td><%= holiday.dateleaving%></td>
<td><%= time_ago_in_words(holiday.created_at) %></td>
<td><%= holiday.approved%></td>
<td><%= time_ago_in_words(holiday.updated_at) %></td>
</tr>
</table>
<% end %>

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment