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". 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
>
> -- 
> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to