# VIEW ================================
# index.html.erb
<table>
<thead>
<tr>
<th>Login</th>
</tr>
</thead>
<tbody id="table_body">
<%= render :partial => 'user_list' %>
</tbody>
</table>
<%= javascript_tag "var ep = EndlessPage(#{@users.page_count}, '#{users_path}', encodeURIComponent('#{form_authenticity_token}'));" %>
# _user_list.erb
<% @users.each do |user| -%>
<tr id="<%= dom_id(user)%>">
<td><%=h user.login %></td>
</tr>
<% end -%>