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 stille can’t get the
picture though the picture is situated under “///nameofimage.png”. Thanks
On 10 Sep 2008, at 11:14, Jay P. wrote:
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 stille can’t get the
picture though the picture is situated under “///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
Fred
thanks for the reply man but doesn’t help.
On 10 Sep 2008, at 12:50, Jay P. wrote:
thanks for the reply man but doesn’t help.
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
On Wed, Sep 10, 2008 at 3:14 AM, Jay P. <
[email protected]> wrote:
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 stille can’t get the
picture though the picture is situated under “///nameofimage.png”. Thanks
Hi, what version of Rails are you using? What does the following
produce in
script/console:
helper.image_tag( ‘nameofimage.png’ )
-Conrad
Conrad T. wrote:
Hi, what version of Rails are you using? What does the following
produce in
script/console:helper.image_tag( ‘nameofimage.png’ )
-Conrad
Thank Conrad for the help, I tried using script/console and it says its
Rails 2.0.2 but doesn’t go well, it ends up with the message: irb.bat is
not recognized as an internal or external command, operable program or
batch file.
Frederick C. wrote:
On 10 Sep 2008, at 12:50, Jay P. wrote:
thanks for the reply man but doesn’t help.
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
On Wed, Sep 10, 2008 at 4:58 PM, Jay P. <
[email protected]> wrote:
Thank Conrad for the help, I tried using script/console and it says its
Rails 2.0.2 but doesn’t go well, it ends up with the message: irb.bat is
not recognized as an internal or external command, operable program or
batch file.
Hi Jay, if you’re running on Windows, then try executing the command in
the
root folder of your Rails application
ruby.exe script\console
Note: Please make sure that the parent directory of ruby.exe is in your
path.
Good luck,
-Conrad