After reading around a bit it seems like the "solution" is to do as recommended. Modify all the URLS. It does seem kind of annoying. Damn you assets pipeline!
(as seen here: http://babinho.net/2011/10/rails-3-1-jquery-ui/) - Ben On Wednesday, 26 October 2011 at 8:51 PM, Ben Taylor wrote: > Any reason why this solution mentioned on Stack Overflow doesn't work? > > http://stackoverflow.com/questions/6133818/rails-3-1-and-jquery-ui-assets > > - Ben > > On Wednesday, 26 October 2011 at 8:46 PM, Samuel Richardson wrote: > > > Yes? ;) > > > > Your other option could be to override elements of the CSS by using > > another CSS file > > > > Sent from my iPhone > > > > On 26/10/2011, at 8:42 PM, Chris Berkhout <[email protected] > > (mailto:[email protected])> wrote: > > > > > Because I'd consider it a fork. It means it isn't the same file that > > > is "released" by the jqueryui.com (http://jqueryui.com) website, and if I > > > want to switch to > > > a different theme, it's (again) more than just dropping in a different > > > file. > > > > > > Am I'm being too pedantic? > > > > > > Cheers, > > > Chris > > > > > > > > > On Wed, Oct 26, 2011 at 5:32 PM, Samuel Richardson <[email protected] > > > (mailto:[email protected])> wrote: > > > > Any reason you don't want to modify the jQuery UI stylesheet? > > > > Samuel Richardson > > > > www.richardson.co.nz (http://www.richardson.co.nz) | 0405 472 748 > > > > > > > > > > > > On Wed, Oct 26, 2011 at 7:03 PM, Chris Berkhout > > > > <[email protected] (mailto:[email protected])> > > > > wrote: > > > > > > > > > > To clarify, ideally I'd like to: > > > > > 1) use no helpers (so that I don't have to modify the auto-generated > > > > > jquery-ui stylesheet) > > > > > 2) use the assets pipeline (so that the CSS goes into the single > > > > > application.css, and gets minified automatically) > > > > > > > > > > Cheers, > > > > > Chris > > > > > > > > > > On Wed, Oct 26, 2011 at 3:59 PM, Chris Darroch > > > > > <[email protected] (mailto:[email protected])> > > > > > wrote: > > > > > > Use the image-path() or image-url() sass-rails helpers. > > > > > > > > > > > > https://github.com/rails/sass-rails > > > > > > > > > > > > Sent from my iPhone > > > > > > > > > > > > On 26/10/2011, at 6:45 PM, Chris Berkhout <[email protected] > > > > > > (mailto:[email protected])> > > > > > > wrote: > > > > > > > > > > > > > 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 > > > > > > > (http://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] > > > > > > > (mailto:[email protected]). > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected] > > > > > > > (mailto:[email protected]). > > > > > > > For more options, visit this group at > > > > > > > http://groups.google.com/group/rails-oceania?hl=en. > > > > > > > > > > > > -- > > > > > > 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] > > > > > > (mailto:[email protected]). > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected] > > > > > > (mailto:[email protected]). > > > > > > For more options, visit this group at > > > > > > http://groups.google.com/group/rails-oceania?hl=en. > > > > > > > > > > -- > > > > > 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] > > > > > (mailto:[email protected]). > > > > > To unsubscribe from this group, send email to > > > > > [email protected] > > > > > (mailto:[email protected]). > > > > > For more options, visit this group at > > > > > http://groups.google.com/group/rails-oceania?hl=en. > > > > > > > > -- > > > > 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] > > > > (mailto:[email protected]). > > > > To unsubscribe from this group, send email to > > > > [email protected] > > > > (mailto:[email protected]). > > > > For more options, visit this group at > > > > http://groups.google.com/group/rails-oceania?hl=en. > > > > > > -- > > > 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] > > > (mailto:[email protected]). > > > To unsubscribe from this group, send email to > > > [email protected] > > > (mailto:[email protected]). > > > For more options, visit this group at > > > http://groups.google.com/group/rails-oceania?hl=en. > > > > -- > > 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] > > (mailto:[email protected]). > > To unsubscribe from this group, send email to > > [email protected] > > (mailto:[email protected]). > > For more options, visit this group at > > http://groups.google.com/group/rails-oceania?hl=en. > -- 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.
