I am using the no configuration option and have taken the following steps:
- put the js files into root/public/javascripts
- put the image files into root/public/images
- put the demo css files into root/public/stylesheets
-
put css call in the head section of my layout file
<%= stylesheet_link_tag "demo_table", :media => "all" %> -
put the initialization script in the head section of my layout file:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#example').dataTable(); } ); </script > -
first line of my table layout is:
<table width="100%" style="border-collapse:collapse; " id="example">
I restarted my server. Nothing happens. What am i missing?
I have been using the RailsDatatables plugin in my rails apps without any problem. Maybe give that a try?