himdel
September 23, 2008, 6:24pm
1
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?
himdel
September 23, 2008, 6:55pm
2
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” %>
himdel
September 23, 2008, 7:32pm
3
Any ideas anybody?
Check your stylesheet path especially if you went from Windows to
*nix…
himdel
September 23, 2008, 7:34pm
4
yes and the source code of the page looks good…
On Sep 23, 5:55 pm, Shandy N. [email protected]
himdel
September 23, 2008, 8:10pm
5
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]
himdel
September 25, 2008, 7:08am
6
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.
himdel
September 24, 2008, 10:39am
7
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]