No css formatting

I’ve just moved a rails site across to a test server from my
development PC.
I’ve frozen rails and put all the relevant gems into the vendor/gems
directory too. I’ve migrated the mysql database and configured Apache
with Phusion Passenger.
I can access the site and the content is fine. The formatting however,
has disappeared - it’s as though the css file does not exist, but it
does and it’s in public/stylesheets.

Any ideas anybody?

Martin H. wrote:

The formatting however,
has disappeared - it’s as though the css file does not exist, but it
does and it’s in public/stylesheets.

Any ideas anybody?

Do you have the included stlyes in the header?

<%= stylesheet_link_tag “styles” %>

Any ideas anybody?

Check your stylesheet path especially if you went from Windows to
*nix…

yes and the source code of the page looks good…

On Sep 23, 5:55 pm, Shandy N. [email protected]

On Tue, Sep 23, 2008 at 10:34 AM, Martin H.
[email protected] wrote:

You can use Firebug to determine whether the style sheet is found
or not (404), or you can just try to access the url directly.

If it’s not 404, make sure it’s being sent as the correct mime type.


Hassan S. ------------------------ [email protected]

When you go to localhost:3000/stylesheets/your-stylesheet.css does it
come out ok?

Ramon T.

On Wed, Sep 24, 2008 at 1:34 AM, Martin H.

Thanks for your suggestions, guys. The css came through ok when I
amended .htaccess to remove a Rewriterule command that apache2 was
objecting to.

On Sep 23, 6:59 pm, “Hassan S.” [email protected]