With this gem you can use jquery.sortable.js plugin with rails asset pipeline.
Add this line to your application's Gemfile:
gem 'sortable-rails', '~> 0.0.2', github: 'scttdavs/sortable-rails'
And then execute:
$ bundle
Add to your app/assets/javascripts/application.js
//= require sortable