I think better solution is gem 'jquery-ui-rails'
and then
//= require jquery.ui.accordion
//= require jquery.ui.autocomplete
or just
//= require jquery.ui.all