Erwin
2012-Aug-11 10:25 UTC
Rails 3.2 assets and jQuery_mobile css , issue with jquery image urls...
I am testing my first mobile app using Rails 3.2 and jQuery_mobile running as expected , BUT the app cannot display the images/icons from jQuery_mobile css... all urls are defined like that : background-image: url(images/icons-18-white.png) and obviously it doesn''t cope with Rails 3.3 asset management ... I am getting ''no route matches'' errors : Started GET "/assets/images/icons-18-white.png" for 127.0.0.1 at 2012-08-11 12:13:38 +0200 ActionController::RoutingError (No route matches [GET] "/assets/images/ icons-18-white.png"): is there anyway to solve this issue but modifying all urls in the jQuery_mobile css to be background-image: url(assets/icons-18-white.png) thanks for feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Erwin
2012-Aug-11 10:32 UTC
Re: Rails 3.2 assets and jQuery_mobile css , issue with jquery image urls...
[SOLVED] I forgot I can move all these images into : vendor/images/images .. running fine now On 11 août, 12:25, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote:> I am testing my first mobile app using Rails 3.2 and jQuery_mobile > running as expected , BUT the app cannot display the images/icons > from jQuery_mobile css... > > all urls are defined like that : > > background-image: url(images/icons-18-white.png) > > and obviously it doesn''t cope with Rails 3.3 asset management ... > I am getting ''no route matches'' errors : > > Started GET "/assets/images/icons-18-white.png" for 127.0.0.1 at > 2012-08-11 12:13:38 +0200 > ActionController::RoutingError (No route matches [GET] "/assets/images/ > icons-18-white.png"): > > is there anyway to solve this issue but modifying all urls in the > jQuery_mobile css to be > background-image: url(assets/icons-18-white.png) > > thanks for feedback-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.