Hi I'm using <%= image_tag("nameofimage.png") %> to load image in my
page and picture is there and it loads very rarely but most of the
time
(almost all the time) it doesn't. What can be the cause for it. Also I
tried <img src="/public/images/nameofimage.png"/> stille can't get the
picture though the picture is situated under "<Project
>/<public>/<images>/nameofimage.png". Thanks
the leading /public isn't necessary. Your web server's Documentroot
should be public (not the project) folder. mongrel, script/server
etc... should do that by themselves
Firebug and things like that allow you to server responses for all of
your requests. I suggest you look at that to find out why your images
aren't loading.
Firebug and things like that allow you to server responses for all of
your requests. I suggest you look at that to find out why your images
aren't loading.
Fred
Thanks again Fred for the reply, I don't know where can I find that
firebug as I don't use firefox, however, I tried it, and suprisingly it
worked fine, so the problem is only with IE, its faster in firefox as
well. So, what can be a solution for IE. Somewhere I read that in IE
there will be yellow triangle in the bottom left if there are any errors
but couldn't find any, so may be there's no error but still the page
doesn't load. Thanks