I have the following in my view - <td> <img class="list-image" src="<%= product.image_url %>"/> </td> image_url being a field in the database. No matter what I change the url to or where I save the images nothing is displayed. By the way I''m following the ''depot'' project in Agile Web Development with Rails Can anyone help? -- 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 -~----------~----~----~----~------~----~------~--~---
doucie wrote:> I have the following in my view - > > <td> > <img class="list-image" src="<%= product.image_url %>"/> > </td> > > image_url being a field in the database. > > No matter what I change the url to or where I save the images nothing is > displayed. > > By the way I''m following the ''depot'' project in Agile Web Development > with Rails > Can anyone help? > >When you use the above code what is the resulting src=" "? Where are you storing the image? Matthew Margolis blog.mattmargolis.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matthew Margolis wrote:> doucie wrote: >> >> By the way I''m following the ''depot'' project in Agile Web Development >> with Rails >> Can anyone help? >> >> > When you use the above code what is the resulting src=" "? > Where are you storing the image? > > Matthew Margolis > blog.mattmargolis.netNo sure what you mean by ''what is the resulting src=" "?'' I''ve tried storing the images in the public image folder within my project and just in c:\ -- 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 -~----------~----~----~----~------~----~------~--~---
doucie wrote:> Matthew Margolis wrote: > >> doucie wrote: >> >>> By the way I''m following the ''depot'' project in Agile Web Development >>> with Rails >>> Can anyone help? >>> >>> >>> >> When you use the above code what is the resulting src=" "? >> Where are you storing the image? >> >> Matthew Margolis >> blog.mattmargolis.net >> > > No sure what you mean by ''what is the resulting src=" "?'' > I''ve tried storing the images in the public image folder within my > project and just in c:\ > >Look at the source code of the page after you go to it and see what rails put in for product.image_url. Your images should be in the public/images folder of your project. Matthew Margolis blog.mattmargolis.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matthew Margolis wrote:> doucie wrote: >>> When you use the above code what is the resulting src=" "? >> > Look at the source code of the page after you go to it and see what > rails put in for product.image_url. Your images should be in the > public/images folder of your project. > > Matthew Margolis > blog.mattmargolis.netCheers for your help, I had c:\images\car.jpg Should have been just \images\car.jpg -- 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 -~----------~----~----~----~------~----~------~--~---