I am putting images in public/images folder, and stored the image name in my table column imageURL. When I am calling books.imageURL, no images are getting displayed. Do i need to configure something else? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Pragati Agarwal wrote:> I am putting images in public/images folder, and stored the image name > in my > table column imageURL. When I am calling books.imageURL, no images are > getting displayed. Do i need to configure something else? > > Thanks!how are you uploading the pictures? what is stored in imageURL? a full path? it will need to eventually look something like this <%= image_tag books.imageURL %> either way, your problem is pretty vague as there isn''t enough information about what you are using / code .. maybe worth posting a little more info -- 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 -~----------~----~----~----~------~----~------~--~---
Shai Rosenfeld wrote:> Pragati Agarwal wrote: >> I am putting images in public/images folder, and stored the image name >> in my >> table column imageURL. When I am calling books.imageURL, no images are >> getting displayed. Do i need to configure something else? >> >> Thanks! > > how are you uploading the pictures? what is stored in imageURL? a full > path? > it will need to eventually look something like this > > <%= image_tag books.imageURL %> > > > either way, your problem is pretty vague as there isn''t enough > information about what you are using / code .. maybe worth posting a > little more infoAlso, including the generated html from the problem line in the rhtml file is usually a good diagnostic. -- 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 -~----------~----~----~----~------~----~------~--~---
Thanks alot for the prompt replies. I got the solution. Was to mention the complete path in the imageURL viz., /images/pogo.png Thanks On 8/8/07, Max Williams <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Shai Rosenfeld wrote: > > Pragati Agarwal wrote: > >> I am putting images in public/images folder, and stored the image name > >> in my > >> table column imageURL. When I am calling books.imageURL, no images are > >> getting displayed. Do i need to configure something else? > >> > >> Thanks! > > > > how are you uploading the pictures? what is stored in imageURL? a full > > path? > > it will need to eventually look something like this > > > > <%= image_tag books.imageURL %> > > > > > > either way, your problem is pretty vague as there isn''t enough > > information about what you are using / code .. maybe worth posting a > > little more info > > Also, including the generated html from the problem line in the rhtml > file is usually a good diagnostic. > -- > 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 -~----------~----~----~----~------~----~------~--~---