J.P
2011-Nov-26 22:36 UTC
Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
I am using rails 3.1.3. Inside config/ application -> config.assets.enabled = true Inside development.rb -> config.assets.compress = false Inside production.rb -> config.serve_static_assets = false; config.assets.compile = false I have images placed in assets/images. If i do localhost:3000/assets/ image I get the image in the browser, but unfortunately, on the browser i am unable to view the images, I am getting following errors in development mode. Haven''t tested yet in production. Started GET "/winecountry_part2.jpg" for 127.0.0.1 at 2011-11-26 12:56:40 -0800 ActionController::RoutingError (No route matches [GET] "/ winecountry_part2.jpg"): Rendered /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@default/gems/ actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/ routing_error.erb within rescues/layout (0.6ms) -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2011-Nov-27 11:36 UTC
Re: Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
First: post your view code Second: explain this "I get the image in the browser, but [...] on the browser i am unable to view the images " -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Nov-27 13:17 UTC
Re: Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
On 26 November 2011 22:36, J.P <jayparteek9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using rails 3.1.3. > > Inside config/ application -> config.assets.enabled = true > Inside development.rb -> config.assets.compress = false > Inside production.rb -> config.serve_static_assets = false; > config.assets.compile = false > > > I have images placed in assets/images. If i do localhost:3000/assets/ > image I get the image in the browser, but > unfortunately, on the browser i am unable to view the images, > > I am getting following errors in development mode. Haven''t tested yet > in production. > > > > > Started GET "/winecountry_part2.jpg" for 127.0.0.1 at 2011-11-26 > 12:56:40 -0800 > > ActionController::RoutingError (No route matches [GET] "/ > winecountry_part2.jpg"):Look carefully at the routing error and you will see that you have not got the same url as the one you entered manually. The problem is with the link to the image in the view. Colin> > > Rendered /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@default/gems/ > actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/ > routing_error.erb within rescues/layout (0.6ms) > > -- > 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- gplus.to/clanlaw -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Dave Aronson
2011-Nov-27 21:41 UTC
Re: Asset pipeline giving me hard time. Please help !!! - (rails 3.1.3)
On Sun, Nov 27, 2011 at 08:17, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 26 November 2011 22:36, J.P <jayparteek9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:...>> ActionController::RoutingError (No route matches [GET] "/ >> winecountry_part2.jpg"): > > Look carefully at the routing error and you will see that you have not > got the same url as the one you entered manually. The problem is with > the link to the image in the view.Excellent point. J.P, can you post the relevant chunk of whatever view was trying to retrieve the file? Sounds like it was using a hand-coded img tag for /winecountry_part2.jpg, rather than letting Rails build it from some tag directive. -Dave -- LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages. Where: Northern Virginia, Washington DC (near Orange Line), and remote work. See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence). Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson) -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Possibly Parallel Threads
- ActionController::RoutingError (No route matches [GET] "/image.jpg"):
- 3.1 asset pipeline + Capistrano troubles
- Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
- Issue with asset pipeline helper with Rails 3.1 final release.
- jquery error in production precompiled