Hey everyone, I was just wondering, is there any way of putting images into a html.erb file? whenever I try it does not show the image, instead it just ignores the code or leaves the text assigned to the image from my html code. can anyone help me get an image onto a html.erb file? or are are html.erb files not supposed to have images put onto them? -- 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 -~----------~----~----~----~------~----~------~--~---
hi RIK, Don''t know exactly what you are asking, if you want to just put image in your html.erb or rhtml this will work. place your images in "public\images" folder, and set path <img src="/images/your image name"> thanx mithila On Sun, Apr 5, 2009 at 7:33 AM, Rik Stott <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>wrote:> > Hey everyone, > > I was just wondering, is there any way of putting images into a html.erb > file? whenever I try it does not show the image, instead it just ignores > the code or leaves the text assigned to the image from my html code. > > can anyone help me get an image onto a html.erb file? or are are > html.erb files not supposed to have images put onto them? > -- > 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 basically want a couple of images to appear in one of the html.erb files in my views folder. I have sent the images to my public/images folder and have set the url for the images as how you shown above, but it still decides to refrain from loading up onto my html.erb pages. mithila karunarathna wrote:> hi RIK, Don''t know exactly what you are asking, if you want to just put > image in your html.erb or rhtml this will work. place your images in > "public\images" folder, and set path <img src="/images/your image name"> > > thanx > mithila > > On Sun, Apr 5, 2009 at 7:33 AM, Rik Stott-- 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 -~----------~----~----~----~------~----~------~--~---
ignore that, that worked, thank you mithila karunarathna wrote:> hi RIK, Don''t know exactly what you are asking, if you want to just put > image in your html.erb or rhtml this will work. place your images in > "public\images" folder, and set path <img src="/images/your image name"> > > thanx > mithila > > On Sun, Apr 5, 2009 at 7:33 AM, Rik Stott-- 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 -~----------~----~----~----~------~----~------~--~---