【发布时间】:2015-04-20 15:56:42
【问题描述】:
我在尝试使用 jQuery DataTables 库运行数据表时遇到上述错误。
请求第 0 行的未知参数“4”。
<div class="container">
<%= render :partial => "layouts/society_nav" %>
<div align="center">
<h3>Self Help Groups</h3>
</div>
<%=link_to "New Self Help Groups" ,new_admin_self_help_group_path,:class=>"btn btn-primary btn-new"%>
<table class="datatable table-bordered">
<thead>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</thead>
<tbody>
<% @selfhelp.each do |s| %>
<tr>
<td class="thead">No of SHGS</td>
<td colspan="2"><%= s.no_of_shgs %></td>
<td> <%= link_to "<span class='glyphicon glyphicon-edit'></span>".html_safe, edit_admin_self_help_group_path(s) %>
</td>
<td> <%= link_to "<span class='glyphicon glyphicon-trash'></span>".html_safe, admin_self_help_group_path(s), :method => :delete, :title => "Delete?", "data-confirm" => "Do you really want to delete?" %>
</td>
</tr>
<tr>
<td class="thead">Out of which No of Women SHG</td>
<td colspan="2"><%= s.no_of_women_shgs %></td>
<td> <%= link_to "<span class='glyphicon glyphicon-edit'></span>".html_safe, edit_admin_self_help_group_path(s) %>
</td>
<td> <%= link_to "<span class='glyphicon glyphicon-trash'></span>".html_safe, admin_self_help_group_path(s), :method => :delete, :title => "Delete?", "data-confirm" => "Do you really want to delete?" %>
</td>
</tr>
<% end %>
</tbody>
</table>
【问题讨论】:
标签: javascript html datatables