Forum: Ruby on Rails Routing error for css?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A8d50e9e6ffc2670d0db1de5cb72ff83?d=identicon&s=25 Xavier Lange (derdewey)
on 2006-01-18 03:40
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
A8d50e9e6ffc2670d0db1de5cb72ff83?d=identicon&s=25 Xavier Lange (derdewey)
on 2006-01-18 06:14
No ideas?  Would it be a good idea to recreate a rails app and then copy
over the work I've done?
25e11a00a89683f7e01e425a1a6e305c?d=identicon&s=25 Wilson Bilkovich (Guest)
on 2006-01-18 15:44
(Received via mailing list)
On 1/18/06, Xavier Lange <cuxrl@eiu.edu> 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.
This topic is locked and can not be replied to.