jueryプラグインのtablesorterをRailsで使う方法です。 tablesorterはtableをsortしたりfilteringするjQueryプラグインです。 ソースコード まずはじめに、tablesorterには本家とforkして他の人が開発しているPageの二つのドキュメントがあります 本家: http://tablesorter.com/docs/ Fork: https://mottie.github.io/tablesorter/docs/ 今回はForkの方を利用する方法を記載します。 ライブラリのダウンロード app/assets/javascriptsディレクトリに jquery(jquery-2.1.1.min.js) jquery.tablesorter.combined.js(v2.23.2) をダウンロードして配置します https://mottie