# Problem loading images and css

**URL:** <https://www.ruby-forum.com/t/problem-loading-images-and-css/188268>\
**Category:** Rails\
**Created:** [May 8, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/problem-loading-images-and-css/188268 "2010-05-08T22:29:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzvio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@tzvio](https://www.ruby-forum.com/u/tzvio)\
**Post date:** [May 8, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/problem-loading-images-and-css/188268/1 "2010-05-08T22:29:42Z")

</div>

i’m running ruby on webrick and it causes strange problems:  
sometimes the images doesn’t appear and only when i refresh they appear  
again.  
the css doesn’t load at all (tested on chrome) but ,somehow, when i  
tested in on firefox , it was loaded only after clearing the cache  
i’m using ruby 1.87 with rails 2.3.5 on linux machine  
thanks

---

<div class="post-metadata">

**Author:** ![tzvio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@tzvio](https://www.ruby-forum.com/u/tzvio)\
**Post date:** [May 8, 2010, 10:53pm UTC](https://www.ruby-forum.com/t/problem-loading-images-and-css/188268/2 "2010-05-08T22:53:57Z")

</div>

On 8 May 2010 21:29, Tzvika O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i’m running ruby on webrick and it causes strange problems:  
> sometimes the images doesn’t appear and only when i refresh they appear  
> again.  
> the css doesn’t load at all (tested on chrome) but ,somehow, when i  
> tested in on firefox , it was loaded only after clearing the cache  
> i’m using ruby 1.87 with rails 2.3.5 on linux machine

One possibility is that you have invalid html. View the page source  
in your browser and copy/paste the full html text into the w3c html  
validator (use google to find it). Alternatively (or also) install  
the html validator plugin to firefox that checks the html as you  
develop it.

Colin

---

<div class="post-metadata">

**Author:** ![tzvio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@tzvio](https://www.ruby-forum.com/u/tzvio)\
**Post date:** [May 8, 2010, 11:11pm UTC](https://www.ruby-forum.com/t/problem-loading-images-and-css/188268/3 "2010-05-08T23:11:53Z")

</div>

Colin L. wrote:

> On 8 May 2010 21:29, Tzvika O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > i’m running ruby on webrick and it causes strange problems:  
> > sometimes the images doesn’t appear and only when i refresh they appear  
> > again.  
> > the css doesn’t load at all (tested on chrome) but ,somehow, ï¿½when i  
> > tested in on firefox , it was loaded only after clearing the cache  
> > i’m using ruby 1.87 with rails 2.3.5 on linux machine
> 
> One possibility is that you have invalid html. View the page source  
> in your browser and copy/paste the full html text into the w3c html  
> validator (use google to find it). Alternatively (or also) install  
> the html validator plugin to firefox that checks the html as you  
> develop it.
> 
> Colin

well, i’ve followed your advice, and - no validation errors at all!  
i got : “This document was successfully checked as XHTML 1.0  
Transitional!”  
but now i got some more serious errors - i got now internal server  
error.  
when i clear the cache , its gone and than back again…  
what’s going on?

---

<div class="post-metadata">

**Author:** ![tzvio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ec9cab/32.png) [@tzvio](https://www.ruby-forum.com/u/tzvio)\
**Post date:** [May 8, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/problem-loading-images-and-css/188268/4 "2010-05-08T23:49:08Z")

</div>

Tzvika O. wrote:

> Colin L. wrote:
> 
> > On 8 May 2010 21:29, Tzvika O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> > 
> > > i’m running ruby on webrick and it causes strange problems:  
> > > sometimes the images doesn’t appear and only when i refresh they appear  
> > > again.  
> > > the css doesn’t load at all (tested on chrome) but ,somehow, ï¿½when i  
> > > tested in on firefox , it was loaded only after clearing the cache  
> > > i’m using ruby 1.87 with rails 2.3.5 on linux machine
> > 
> > One possibility is that you have invalid html. View the page source  
> > in your browser and copy/paste the full html text into the w3c html  
> > validator (use google to find it). Alternatively (or also) install  
> > the html validator plugin to firefox that checks the html as you  
> > develop it.
> > 
> > Colin
> 
> well, i’ve followed your advice, and - no validation errors at all!  
> i got : “This document was successfully checked as XHTML 1.0  
> Transitional!”  
> but now i got some more serious errors - i got now internal server  
> error.  
> when i clear the cache , its gone and than back again…  
> what’s going on?

solved it.  
i read about a problem like that and a suggestion to use mongrel server.  
switched to mongrel - problem solved
