Broken images and stylesheet on rails app.

Broken images and stylesheet on rails app.

Posted by: phirefly
Posted on: 2007-09-28 10:31:00

Hello,
I'm deploying my first rails app. After following the
directions (http://wiki.dreamhost.com/Rails), the site is running, but the images and stylesheets aren't being called out properly. Any ideas why?

The images are still in the Rails directories 'public/images' and 'public/
stylesheets'.
The web directory is set up to point to the 'public directory'. After doing a view source, the html points to '/images/' and the style to '/stylesheets/', which should work.

If anyone has any insight it would be great.

Raph

Re: Broken images and stylesheet on rails app.

Posted by: leszekhq
Posted on: 2007-12-10 08:20:00

I'm getting the exact same behavior. Have you found any solution for that already???

Cheers,
Leszek

Re: Broken images and stylesheet on rails app.

Posted by: leszekhq
Posted on: 2007-12-10 14:46:00

Guys,
I'm complete newbie in RoR/Dreamhost world, but I did something which worked for me. Initially when I edited .htaccess file to enable fcgi I uncommented example rewrite rule line which was enabling fcgi - in the script it was before line RewriteEngine on. When I moved RewriteRule to after RewriteEngine on images started to appear :)


Tags: public imagesstylesheetsdreamhostpublic directoryview sourcestylesheetweb directorywikiinsight