rails_bootstrap_sortable

A gem that packages the bootstrap-sortable js library from https://github.com/drvic10k/bootstrap-sortable


Keywords
frontend, javascript, rails, ruby, ruby-on-rails, sorting, ui
License
MIT
Install
gem install rails_bootstrap_sortable -v 2.0.7

Documentation

rails_bootstrap_sortable

Gem Version

This gem packages the lovely bootstrap-sortable gem from drvic10k/bootstrap-sortable into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is © 2015 Matúš Brliť (drvic10k), bootstrap-sortable contributors.

Installation

Add these lines to your rails project's Gemfile:

gem 'momentjs-rails'
gem 'rails_bootstrap_sortable'

Install the new gems:

$ bundle install

(for more info see rails_bootstrap_sortable on rubygems.org)

Add this line to application.css.scss:

*= require bootstrap-sortable

Add these lines to application.js.coffee:

//= require moment
//= require bootstrap-sortable

Usage

Please see dvic10k/bootstrap-sortable for full usage information.