Skip to content

linjunpop/jquery-tablesorter-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fff4f80 · Dec 24, 2012

History

64 Commits
Dec 16, 2012
Dec 24, 2012
Dec 24, 2012
May 28, 2012
Jun 1, 2012
Dec 16, 2012
Feb 13, 2012
Oct 21, 2011
Dec 24, 2012
Nov 7, 2012
Feb 13, 2012

Repository files navigation

jQuery Table Sorter plugin for Rails

Still Maintained

Simple integration of jquery-tablesorter into the asset pipeline.

Current tablesorter version: 2.6.2 (12/20/2012), documentation

Any issue associate with the js/css files, please report to Mottie's fork.

Installation

Add this line to your application's Gemfile:

gem 'jquery-tablesorter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jquery-tablesorter

Requirements

Rails 3.1 and higher

Usage

JavaScript files

In your application.js

//= require jquery-tablesorter

This will require all jquery-tablesorter files (exclude addons).

Or you can include single file with:

//= require jquery-tablesorter/jquery.metadata
//= require jquery-tablesorter/jquery.tablesorter
//= require jquery-tablesorter/jquery.tablesorter.widgets
//= require jquery-tablesorter/addons/pager/jquery.tablesorter.pager

Stylesheet files

In your application.css

/*
 *= require jquery-tablesorter/<theme name>
 */

Avaliable theme names:

  • theme.black-ice
  • theme.blue
  • theme.bootstrap
  • theme.dark
  • theme.default
  • theme.dropbox
  • theme.green
  • theme.grey
  • theme.ice
  • theme.jui

pager theme:

/*
 *= require jquery-tablesorter/addons/pager/jquery.tablesorter.pager
 */

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Update js and css files

  1. Update tablesorter submodule
  2. Run rake jquery_tablesorter:update
  3. Run rake jquery_tablesorter:sanitize_image_paths
  4. Update README.md and CHANGELOG.md

About

[:warning: MOVED] Simple integration of jquery-tablesorter into the asset pipeline.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages