I followed https://github.com/rweng/jquery-datatables-rails exactly . Cannot get dataTables to work.
In 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>
In application.js
//= require jquery
//= require turbolinks
//= require_tree .
//= require jquery_ujs
//= require dataTables/jquery.dataTables
In application.css.scss
*= require_self
*= require_tree .
*= require dataTables/jquery.dataTables
gem file
gem 'jquery-datatables-rails', git: 'git://github.com/rweng/jquery-datatables-rails.git'
Have tried a lot of options, only a table shows up with no functionalities of datatables. Using rails 4 Does the gem add new folders and files to your app, if so nothing is added in my app