jQuery! For Rails! So great.
This gem provides:
下面还有
For jQuery UI, we recommend the jquery-ui-rails gem, as it includes the jquery-ui css and allows easier customization. This gem still packages the jQuery UI javascript for compatibility. To use it, add the following line to your application.js:
//= require jquery-ui
https://github.com/joliss/jquery-ui-rails
坑还是挺多的