Ruby on Rails: “couldn't find file 'jquery-ui'”

后端 未结 4 1577
梦如初夏
梦如初夏 2021-02-05 10:16

I\'ve just done a fresh install and was able to access the default rails page at localhost:3000, but when I installed the activeadmin gem I had a problem when accessing /admin/

4条回答
  •  鱼传尺愫
    2021-02-05 10:56

    Adding the jquery-ui-rails gem will also give you jquery.ui support.

    gem 'jquery-ui-rails'
    

    In your application.js and application.css files, you can add all modules

    jquery.ui.all
    

    or only the ones you need, e.g.:

    jquery.ui.slider
    

提交回复
热议问题