Ruby on Rails 3.1 and jQuery UI images

前端 未结 18 1034
无人及你
无人及你 2020-12-12 11:50

I\'m using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2.

application.js is as follows.

//= require jquery
//= requi         


        
18条回答
  •  旧时难觅i
    2020-12-12 12:25

    I know this thread already has a lot of answers but I'm going to throw in what worked best for me.

    There is a gem called jquery-ui-themes that includes the default jQuery UI themes already converted to sass using the image-path helper. So you can include the gem and get any of the default themes out of the box just by adding them to your application.css file

    If you want to use your own custom theme (as I did) there is a rake task that will automatically convert the CSS file to SCSS and use the image-path helper to find the right path.

提交回复
热议问题