Ruby on Rails 3.1 and jQuery UI images

前端 未结 18 1045
无人及你
无人及你 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条回答
  •  没有蜡笔的小新
    2020-12-12 12:32

    I've fallen down to doing it the old way:

    I put the jQuery folder, containing the theme (unchanged with both CSS and images folder) in the assets/stylesheets folder, and putting in: <%= stylesheet_link_tag "jquery/ui-lightness/jquery-ui-1.8.13.custom" %> in app/views/layouts/application.html.erb file. This solution is the one with less hazel when I will update jQuery later.

    (Thanks for all suggestions on the solution. It is time to conclude.)

提交回复
热议问题