Started GET "/posts/new" for 127.0.0.1 at 2012-02-16 10:56:27 +0800
Processing by PostsController#new as HTML
Rendered posts/_form.html.erb (6.0ms)
Rendered posts/new.html.erb within layouts/application (7.0ms)
Completed 200 OK in 10ms (Views: 10.0ms)
Started GET "/stylesheets/bootstrap.css" for 127.0.0.1 at 2012-02-16 10:56:27 +0800
ActionController::RoutingError (No route matches [GET] "/stylesheets/bootstrap.css"):
actionpack (3.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.1) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.1) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.1) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:241:in `fetch'
rack-cache (1.1) lib/rack/cache/context.rb:181:in `lookup'
rack-cache (1.1) lib/rack/cache/context.rb:65:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
railties (3.2.1) lib/rails/engine.rb:479:in `call'
railties (3.2.1) lib/rails/application.rb:220:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.1) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
我已经执行了rake assets:precompile
并且生成好了。只是生成的路径有问题,html 代码里的样式表指向的是stylesheets
目录,生成的确在assets
目录,还老是提示GET /favicon.ico
这个错误。= =
<link href="/stylesheets/bootstrap.css" media="all" rel="stylesheet" type="text/css" />
<script src="/javascripts/application.js" type="text/javascript"></script>
很奇怪。生成环境下的生成的样式和 js 应该后面还带一写字符串的才对。