https://github.com/rweng/jquery-datatables-railsを正確にフォローしました。dataTables を機能させることができません。
index.html.erb で
<table id = "funds12">
<thead>
<tr>
<th>Fund Name</th>
<th>Category</th>
<th>YTD</th>
</tr>
</thead>
<tbody>
<% @funds.each do |fund| %>
<tr>
<td><%= link_to "#{fund.scheme_name}", fund_path(fund.id) %><td>
<td><%= fund.category %></td>
<td><%= fund.fund_ytd %></td>
</tr>
<% end %>
</tbody>
</table>
<script>
$(document).ready(function() {
$('#funds12').dataTable();
} );
</script>
application.js 内
//= require jquery
//= require turbolinks
//= require_tree .
//= require jquery_ujs
//= require dataTables/jquery.dataTables
application.css.scss 内
*= require_self
*= require_tree .
*= require dataTables/jquery.dataTables
宝石ファイル
宝石「jquery-datatables-rails」、git:「git://github.com/rweng/jquery-datatables-rails.git」
多くのオプションを試しましたが、テーブルのみが表示され、データテーブルの機能はありません。Rails 4 を使用して、gem はアプリに新しいフォルダーとファイルを追加しますか?もしそうなら、私のアプリには何も追加されません