Forum: Ruby on Rails CSS not displaying in Firefox

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4ad1ac795bb412a93d2d68910a2ebe40?d=identicon&s=25 Geoff (Guest)
on 2006-12-21 11:57
Hello,

I am developping a social networking site in rails, it can be found at
the url www[dot]string[dot]be

My problem is that firefox doesn't seems to find/interpret the css
linked to it. Everything works fine in other browsers (IE,  safari,
Opera) but not in firefox.

Does anybody have a clue ?

Geoff
Ec5a599777854c540fd102ef4691fe10?d=identicon&s=25 Rimantas Liubertas (Guest)
on 2006-12-21 12:02
(Received via mailing list)
> Hello,
>
> I am developping a social networking site in rails, it can be found at
> the url www[dot]string[dot]be
>
> My problem is that firefox doesn't seems to find/interpret the css
> linked to it. Everything works fine in other browsers (IE,  safari,
> Opera) but not in firefox.
>
> Does anybody have a clue ?

Your server sends CSS files with the wrong MIME type. From headers:

Request:

GET /stylesheets/scaffold.css?1163928878 HTTP/1.1
Host: www.string.be
<...>
Accept: text/css,*/*;q=0.1

Response:

HTTP/1.x 200 OK
Date: Thu, 21 Dec 2006 10:59:11 GMT
Server: Apache/2.0.54 (Debian GNU/Linux) PHP/4.4.4-0.dotdeb.3 with
Suhosin-Patch mod_ssl/2.0.54 OpenSSL/0.9.7e
<...>
Content-Type: text/plain

So, instead of text/css server uses text/plain for CSS files. Check
your configuration.


Regards,
Rimantas
--
http://rimantas.com/
4ad1ac795bb412a93d2d68910a2ebe40?d=identicon&s=25 Geoff (Guest)
on 2006-12-21 12:51
Thx a lot for the answer.
8c66dc72416bd3537bf00cc297b0b226?d=identicon&s=25 Zeff (Guest)
on 2007-02-28 15:40
(Received via mailing list)
Geoff,

Did you ever resolve this?  I'm having a similar problem with my host
serving up one page as text/plain.

Zeff

On Dec 21 2006, 5:57 am, Geoff <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.