So, here is one way to do this, in which there are no shortcomings of some of the others mentioned here - it does not require you to separate the topic and place its parts in different places, it does not require symbolic links, and it still allows you to compile a css theme into one main css as part of an asset pipeline. This does not require a monkey patch, as the Nash Bridges offer.
However, this requires an additional view of the hacker configuration string. (single line, though, mostly).
Ok, put your theme in vendor / assets / jquery / ui-lightness / as you like. (will also work in lib / assets or app / assets, in the same way).
and
in your application.css application. So far, so good. Now, for the images to display correctly, just add this to config / application.rb:
initializer :add_jquery_ui_asset_base, :group => :all, :after => :append_assets_path do config.assets.paths.unshift Rails.root.join("vendor", "assets", "stylesheets", "jquery-ui", "ui-lightness").to_s end
For me, it now works in dev, production, and other non-standard asset configurations that I could think of (for example, dev with debug = false, which launches some of the other solution attempts).
Additional information at http://bibwild.wordpress.com/2011/12/08/jquery-ui-css-and-images-and-rails-asset-pipeline/
jrochkind Dec 09 '11 at 4:52 2011-12-09 04:52
source share