Hi All,

I've got a Rails 3.1 app, and I've just started using the jQuery UI
plugin's datepicker.

I'm getting the javascript code out of the jquery-rails gem, by adding
(to app/assets/javascripts/application.js):
//= require jquery-ui.min

For the theme/style, I generated one on jqueryui.com, and added the
CSS file here:
app/assets/stylesheets/jquery-ui-datepicker.smoothness.css

My problem is with the images.

Putting them under app/assets/stylesheets/images/* worked in
development, but in production (when MD5 hashes get added) it doesn't
work.

With the CSS going into /assets/application.css, it's expecting its
images to be under /assets/images/*.

Is there a way to have the CSS and the images packaged as assets
without modifying the CSS to use the asset_path helper?

The only solution I can see at the moment is to put CSS and images
under /public and manually link to the stylesheet in my application
layout.

Cheers,
Chris

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to