Hi all, configured ror successfully,recently. In my sample application i want to display some images.I am placing the images in public\images folder and giving link to the image using img tag in my html code. But images are not displaying instead a blank image is displaying where did it gone wrong.....pls help... -- 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.
Hay Venkata, can you please share the code of your controller corresponding to the image object? and also the code you wrote for displaying image in your action/view file ? So I might try to find out the problem and the solution:) Best Wishes "Shuvecha" On Mon, Nov 22, 2010 at 10:21 AM, venkata reddy <venkatareddy.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> Hi all, > configured ror successfully,recently. > In my sample application i want to display some images.I am placing > the images in public\images folder and giving link to the image using > img tag in my html code. But images are not displaying instead a blank > image is displaying where did it gone wrong.....pls help... > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Thanks, Irfan Ahmed Rizvi http://www.welltreat.us +880 1676 246 991 +880 1723 712 288 -- 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.
Hi ahmed, controller code:class HomeController < ApplicationController def index end end actullay i created a created a home controller and changed the routing.everthing in the html code is reflecting but images are not getting displayed. and see the below html code i written for displaying the image <html> <body> <p>Hi All</p> <img src=*C:\rails-projects\insert_static\public\images\bg.gif* width="800" height="600" /> </body> </html> On Nov 22, 9:26 am, Irfan Ahmed <irfan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hay Venkata, > can you please share the code of your controller corresponding to the image > object? and also the code you wrote for displaying image in your action/view > file ? > So I might try to find out the problem and the solution:) > > Best Wishes "Shuvecha" > > On Mon, Nov 22, 2010 at 10:21 AM, venkata reddy > <venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > > > > > > > > > > > Hi all, > > configured ror successfully,recently. > > In my sample application i want to display some images.I am placing > > the images in public\images folder and giving link to the image using > > img tag in my html code. But images are not displaying instead a blank > > image is displaying where did it gone wrong.....pls help... > > > -- > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > Thanks, > Irfan Ahmed Rizvihttp://www.welltreat.us > +880 1676 246 991 > +880 1723 712 288-- 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.
On 22 November 2010 04:53, venkata reddy <venkatareddy.cs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> [...] > <img src=*C:\rails-projects\insert_static\public\images\bg.gif* > width="800" height="600" />If you have images in public/images just reverence by src="/images/bg.gif" (don''t forget the leading /). Alternatively use image_tag( "bg.gif" ) which will look in public/images. Colin -- 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.
thank u .....it worked... On Nov 22, 1:32 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 22 November 2010 04:53, venkata reddy <venkatareddy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > [...] > > <img src=*C:\rails-projects\insert_static\public\images\bg.gif* > > width="800" height="600" /> > > If you have images in public/images just reverence by > src="/images/bg.gif" (don''t forget the leading /). Alternatively use > image_tag( "bg.gif" ) which will look in public/images. > > Colin-- 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.