I’m using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2.
application.js is as follows.
//= require jquery
//= require jquery-ui
//= require jquery_ujs
//= require_tree
Where is the right place in Ruby on Rails 3.1 to put the jQuery UI theme?
According to Autocomplete fields in Ruby on Rails 3.1 with jQuery UI I should put a jQuery UI theme in vendor/assets/stylesheets folder. That sounds like a smart place to have it, but I don’t get it to work :-(.
I managed to get the CSS loaded by putting it in the assets/stylesheets folder, but the images I havn’t managed to get loaded.
I could of course be using the old way with just putting the theme in the public/stylesheets/ folder, and using:
<%= stylesheet_link_tag "jquery/ui-lightness/jquery-ui-1.8.11.custom" %>
in application.html.erb, but trying to be a modern man, I would rather use the new way of doing tings :-).
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" %>inapp/views/layouts/application.html.erbfile. 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.)