seyhunak / twitter-bootstrap-rails

Twitter Bootstrap for Rails 6.0, Rails 5 - Rails 4.x Asset Pipeline
https://github.com/seyhunak/twitter-bootstrap-rails
4.5k stars 996 forks source link

Served asset /twitter/bootstrap/bootstrap - 404 Not Found #333

Closed ratsbomb closed 10 years ago

ratsbomb commented 12 years ago

In my WEBrick Logs

2012-08-14 12:09:23.499 [fyi] Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-08-14 12:09:23 +0900 (pid:3701)
2012-08-14 12:09:23.519 [fyi] Served asset /application.js - 304 Not Modified (15ms) (pid:3701)
[2012-08-14 12:09:23] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
2012-08-14 12:09:23.519 [fyi] Started GET "/assets/twitter/bootstrap/bootstrap" for 127.0.0.1 at 2012-08-14 12:09:23 +0900 (pid:3701)
2012-08-14 12:09:23.526 [fyi] Served asset /twitter/bootstrap/bootstrap - 404 Not Found (5ms) (pid:3701)
2012-08-14 12:09:23.527 [omg] ActionController::RoutingError (No route matches [GET] "/assets/twitter/bootstrap/bootstrap"):
    actionpack (3.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
    actionpack (3.2.6) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
    railties (3.2.6) lib/rails/rack/logger.rb:26:in `call_app'
    railties (3.2.6) lib/rails/rack/logger.rb:16:in `call'
    actionpack (3.2.6) 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.6) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
    rack (1.4.1) lib/rack/lock.rb:15:in `call'
    actionpack (3.2.6) lib/action_dispatch/middleware/static.rb:62:in `call'
    railties (3.2.6) lib/rails/engine.rb:479:in `call'
    railties (3.2.6) lib/rails/application.rb:220:in `call'
    rack (1.4.1) lib/rack/content_length.rb:14:in `call'
    railties (3.2.6) lib/rails/rack/log_tailer.rb:17:in `call'
    rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
    /usr/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
    /usr/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
    /usr/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' (pid:3701)
2012-08-14 12:09:23.531 [fyi] Rendered /var/lib/gems/1.9.1/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms) (pid:3701)

Every page loading, I got that messages. but display is ok. What's the matter?

idl3 commented 12 years ago

Is this fresh from a generated template or did you do some modifications? Maybe it would help to also let us know which markdown language you are using, erb, slim or haml?

ratsbomb commented 12 years ago

I used markdown language as erb. and I did not any modifications. I generated template by rake scaffold. (yes, it's fresh template)

I fixed it by following.(i made empty bootstrap.js file)

vendor/assets/javascripts/twitter/bootstrap$ touch bootstrap.js

then error log disappeared.

2012-08-17 12:48:29.602 [fyi] Served asset /application.js - 304 Not Modified (9ms) (pid:31400)
[2012-08-17 12:48:29] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true
2012-08-17 12:48:29.603 [fyi] Started GET "/assets/twitter/bootstrap/bootstrap" for 127.0.0.1 at 2012-08-17 12:48:29 +0900 (pid:31400)
2012-08-17 12:48:29.607 [fyi] Compiled twitter/bootstrap/bootstrap.js  (0ms)  (pid 31400) (pid:31400)
2012-08-17 12:48:29.609 [fyi] Served asset /twitter/bootstrap/bootstrap - 200 OK (4ms) (pid:31400)
idl3 commented 12 years ago

its weird that your site is asking for that file though :o any idea where in the script is calling for that file?