sortable
sortable copied to clipboard
Needs to be explicitly required
Just installed this as a gem using bundler, as follows:
source 'http://gems.github.com'
gem 'shuber-sortable'
But that wasn't enough to have the "sortable" method available in my models. I had to add an initializer with the line require 'sortable'
for this to work.
Am I missing something? The gem "source" installed by bundler doesn't seem to have any init.rb file that would do the require automatically.
In your Gemfile, try
gem 'shuber-sortable', require: 'sortable'