My Stylesheets Don’t Route?
By chris on October 6th 2008 in /dev/rails | 732 views
Over the weekend I was mucking about with my soon-to-be-released-for-public-consumption site when all of a sudden I started getting routing errors on my stylesheets. Madness, that, expecting to need to define a controller and action for stylesheets. Imagine!
Turns out the problem was not with routing per se but with the permissions on the public/stylesheet/ directory. In my mucking it seems I’d set the permissions on that directory to 777 instead of 755. For whatever reason (I’m sure it’s in the Rails source somewhere) that small (and rather dangerously stupid) change switched stylesheet serving from Apache-handled to Rails-handled.
So, beware the permissions for they are strict indeed.
Comments Off
