I have Ajax Pagination (sort of) working on my Ruby on Rails Project.
However my problem is, is that it repeats each page x number of times, x
being equal to the amount of records I have on each page.
So lets say for example prior to the Ajax Pagination, I had 12 records
per page, now I have each record on that page replicated 12 times.
I render a partial as follows.
<table width="500" border="1" align="center" class="gridtable" id="meh">
<th height="26" scope="col">Username</th>
<th scope="col">Date Leaving</th>
<th scope="col">Date Submitted</th>
<th scope="col">Date Updated</th>
<% div_for for holidays in @holidays%>
<td><%= link_to holiday.user.username, holiday %></td>
<td><%= time_ago_in_words(holiday.created_at) %></td>
<td><%= time_ago_in_words(holiday.updated_at) %></td>
<% 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 firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.