On 7 April 2012 21:38, sherpa derpa <[email protected]> wrote: > 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.
Once again you have not quoted the previous reply so we don't know which message you are referring to. > > <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 %> That code only seems to show one record. I don't see any loop in it. Colin -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

