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 Folder>/<public>/<images>/nameofimage.png". Thanks -- 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 -~----------~----~----~----~------~----~------~--~---
On 10 Sep 2008, at 11:14, Jay Pangmi 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 <img src="/public/images/nameofimage.png"/> stille can''t get the > picture though the picture is situated under "<Project > Folder>/<public>/<images>/nameofimage.png". Thanksthe 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> > -- > 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 for the reply man but doesn''t help. -- 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 -~----------~----~----~----~------~----~------~--~---
On 10 Sep 2008, at 12:50, Jay Pangmi 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> > -- > 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 -~----------~----~----~----~------~----~------~--~---
On Wed, Sep 10, 2008 at 3:14 AM, Jay Pangmi < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 <img src="/public/images/nameofimage.png"/> stille can''t get the > picture though the picture is situated under "<Project > Folder>/<public>/<images>/nameofimage.png". ThanksHi, what version of Rails are you using? What does the following produce in script/console: helper.image_tag( ''nameofimage.png'' ) -Conrad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 10 Sep 2008, at 12:50, Jay Pangmi 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. > > FredThanks 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 -- 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 -~----------~----~----~----~------~----~------~--~---
Conrad Taylor wrote:> Hi, what version of Rails are you using? What does the following > produce in > script/console: > > helper.image_tag( ''nameofimage.png'' ) > > -ConradThank 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. -- 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 -~----------~----~----~----~------~----~------~--~---
On Wed, Sep 10, 2008 at 4:58 PM, Jay Pangmi < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Conrad Taylor 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.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> > > -- > 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 -~----------~----~----~----~------~----~------~--~---