# Routing error for css?

**URL:** <https://www.ruby-forum.com/t/routing-error-for-css/62236>\
**Category:** Rails\
**Created:** [January 18, 2006, 3:40am UTC](https://www.ruby-forum.com/t/routing-error-for-css/62236 "2006-01-18T03:40:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derdewey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@derdewey](https://www.ruby-forum.com/u/derdewey)\
**Post date:** [January 18, 2006, 3:40am UTC](https://www.ruby-forum.com/t/routing-error-for-css/62236/1 "2006-01-18T03:40:35Z")

</div>

I can’t remember when, or what I was doing, but now I can’t retrieve the  
CSS files for my sites layout (I don’t think ror is handing them out  
properly). I’m pretty sure that I didn’t touch anything. I don’t know  
much about routes yet (I checked the routes.rb file with a freshly  
generated one, and it was the same). What can be gleaned from this  
development log entry?

ActionController::RoutingError (Recognition failed for  
“/stylesheets/scaffold.css”):  
/vendor/actionpack/lib/action\_controller/routing.rb:444:in  
`recognition_failed' /vendor/actionpack/lib/action_controller/routing.rb:434:in`recognize!’  
/vendor/railties/lib/dispatcher.rb:32:in `dispatch' /vendor/railties/lib/fcgi_handler.rb:144:in`process\_request’  
/vendor/railties/lib/fcgi\_handler.rb:64:in `process!' /vendor/railties/lib/fcgi_handler.rb:55:in`each\_cgi’  
/usr/lib/ruby/1.8/fcgi.rb:597:in `each' /usr/lib/ruby/1.8/fcgi.rb:597:in`each\_cgi’  
/vendor/railties/lib/fcgi\_handler.rb:55:in `process!' /vendor/railties/lib/fcgi_handler.rb:21:in`process!’  
/var/www/iks/public/dispatch.fcgi:26

---

<div class="post-metadata">

**Author:** ![derdewey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@derdewey](https://www.ruby-forum.com/u/derdewey)\
**Post date:** [January 18, 2006, 6:14am UTC](https://www.ruby-forum.com/t/routing-error-for-css/62236/2 "2006-01-18T06:14:14Z")

</div>

No ideas? Would it be a good idea to recreate a rails app and then copy  
over the work I’ve done?

---

<div class="post-metadata">

**Author:** ![derdewey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c89c15/32.png) [@derdewey](https://www.ruby-forum.com/u/derdewey)\
**Post date:** [January 18, 2006, 3:44pm UTC](https://www.ruby-forum.com/t/routing-error-for-css/62236/3 "2006-01-18T15:44:08Z")

</div>

On 1/18/06, Xavier L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> No ideas? Would it be a good idea to recreate a rails app and then copy  
> over the work I’ve done?

If this is an older app that used the old initialization process, you  
should run “rails .” in the root of the app, so that the new  
environment.rb, boot.rb, etc, etc, can be set up.
