Rails 4 - how to install "jquery-ui"? Rails 4 - how to install "jquery-ui"? ruby-on-rails ruby-on-rails

Rails 4 - how to install "jquery-ui"?


In application.css it should be

 *= require jquery-ui


In application.js you need to add:

//= require jquery.ui.all

or for specific components e.g.

//= require jquery.ui.sortable


To update this answer, the current convention is:

//= require jquery-ui

and for css:

/**= require jquery-ui*/

for specific modules:

//= require jquery-ui/draggable

See latest docs here for more configuration options