Sha256: 6ec269520fd269d5b5e8e7c29cf4c24f94450f8730f78abd362ea7f03b9ca243
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
This is a gem for Rails >= 3.1 applications. It provides all the basic DataTables files, but not (yet) the extras. # Install and Usage First, put the gem in your Gemfile (`gem 'jquery-datatables-rails'`) and run `bundle install` After installing it you can require it in your _application.js_ file with `\\= require jquery.dataTables.min`, or use the images and stylesheets in the _dataTables_ directory: `<%= image_tag 'dataTables/sortBoth.png' %>`. However, if you use the stylesheets include them separately and not compiled in the application.css. This is because images in the stylesheets are referenced to without a path. So if you include the stylesheet `dataTables/demo_table_jui` it works, because the images are also under `dataTables`. But if you include the stylesheet in the application.css, it won't work. # Plugins Right now, the only plugin that is available is fnReloadAjax. Check out the [assets directory][assets]. [assets]: https://github.com/rweng/jquery-datatables-rails/tree/master/vendor/assets/javascripts
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jquery-datatables-rails-1.9.0 | Readme.md |
jquery-datatables-rails-0.1.0 | Readme.md |