The pagination is not working properly with rails: I have the following listing page:
<h1>Listing Tim User</h1>
<table>
<tr>
<th>Username</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Is Admin</th>
<th>Is Construction</th>
<th>Is Sales</th>
<th>All Reports Access</th>
<th>Selection unlock</th>
<th>Show</th>
<th>Edit</th>
<th>Destroy</th>
</tr>
<% for tim_user in @tim_users %>
<tr>
<td><%= tim_user.username %></td>
<td><%= tim_user.firstname %></td>
<td><%= tim_user.lastname %></td>
<td><%= tim_user.isadmin %></td>
<td><%= tim_user.isconstruction %></td>
<td><%= tim_user.is_sales %></td>
<td><%= tim_user.all_reports_access %></td>
<td><%= tim_user.selection_unlock %></td>
<td><%= link_to 'Show', :action => 'show', :id => tim_user %></td>
<td><%= link_to 'Edit', :action => 'edit', :id => tim_user %></td>
<td><%= link_to 'Destroy', {:action => 'destroy', :id => tim_user}, :confirm => 'Are you sure?' %></td>
</tr>
<% end %>
</table>
<%= link_to 'Previous page', { :page => @tim_user_pages.current.previous } if @tim_user_pages.current.previous %>
<%= link_to 'Next page', { :page => @tim_user_pages.current.next } if @tim_user_pages.current.next %>
<br />
<%= link_to 'New tim_user', :action => 'new' %>
And when I click the next button the same group appears for all pages.