0
我有我的观点我在哪里出的所有记录,我需要添加多个选择复选框轨道,我这样做以下列方式:选择复选框通阵列上使用雷分页
<%= form_tag("/user_selection", method: 'get', remote: true, class: "form-horizontal") do %><!--responde al index-->
<div class="rwd">
<table class="table table-striped table-bordered table-condensed table-hover">
<thead>
<tr>
<th>name</th>
<th>last name</th>
</tr>
</thead>
<tbody id="container_users">
<%= render @users %>
</tbody>
</table>
<%= paginate @users, :param_name => 'users' %>
</div>
<%= submit_tag "send", data: { disable_with: 'sending...' } %>
<% end %>
部分用户
<tr id="user_<%= user.Id %>">
<td><%=user.try(:name)%></td>
<td><%=user.try(:lastname)%></td>
<td><%= check_box_tag "items[]", user.Id %></td>
</tr>
这样我可以选择多条记录与发送的ID控制器,问题就来了,当我选择的记录,我去下一个页面上,使用雷的页面上,从路过的时候页面上一页的记录不再被选中,就像y一样你解决了吗?