Missing images and stylesheets


#1

So I successfully got my Rails 2.1.0 application transferred to dreamhost and running and followed the ruby on rails wiki to setup my dispatch.fcgi and .htaccess file and change my permissions.

Everythings up, database looks like it works I’m running in production mode, however my images and stylesheets aren’t rendering.

My paths look fine, /images/file.jpg and /stylesheets/file.css
My domain points to the /public directory.

I’m out of ideas? Any help?


#2

Check your /appname/public/.htaccess file.

The “RewriteEngine On” line must come before any other Rewrite command. This was my problem when stylesheets/js/images weren’t rendering on my site.