Hi everyone, I''m following the book "Agile web development with rails" and I hitted my first problem. I can''t see any image in my list of products. What I''m doing wrong? html code ----------- <img class="list-image" src="<%= product.image_url %>" /> html code generated ----------------------- <img src="/images/auto.jpg" class="list-image"/> URL ----- http://localhost:3002/admin/list PS: I''m using Aptana Studio and I''m running a webrick server on port 3002 directly from Aptana. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I don''t think there is any thing wrong with the above code. But do you really have an image with the name auto.jpg inside your public/images directory? On Nov 20, 1:59 am, Alberto Trujillo <rails-mailing-l...@andreas- s.net> wrote:> Hi everyone, > > I''m following the book "Agile web development with rails" and I hitted > my first problem. I can''t see any image in my list of products. > What I''m doing wrong? > > html code > ----------- > <img class="list-image" src="<%= product.image_url %>" /> > > html code generated > ----------------------- > <img src="/images/auto.jpg" class="list-image"/> > > URL > -----http://localhost:3002/admin/list > > PS: I''m using Aptana Studio and I''m running a webrick server on port > 3002 directly from Aptana. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
tiredness can be a bad enemy sometimes. My images where inside of "images" directory but in the wrong path. As soon I moved them into "public/images" everything worked. :P -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---