Hello
My application have alot of javascript files, the new asset pipeline in
rails 3.1 is very nice, but it give me a problem, when it compiles all
the file in one file in development, get very hard to debug, so i
include the application javascript file with the option ‘:debug =>
true’, so the files does not get compiled in one.
But i get this problem bellow, when i do some request, it get into rails
and than, the assets are get, but seams like the assets are requests and
not serving assets, and this takes too long, take something like 5
seconds to complete a single request. In production mode, it works
amazing without any problem.
I started nginx infront of the thin server even in development, tried to
disable the asset_serving in enviroment files but dosent work =/
Anyone can help me?
Started GET “/establishments/1/coupons/new” for 127.0.0.1 at 2011-07-05
Completed 200 OK in 191ms (Views: 127.5ms | ActiveRecord: 12.3ms)
Started GET “/assets/application.css” for 127.0.0.1 at 2011-07-05
10:12:19 Served asset /application.css - 304 Not Modified (0ms) (pid
2999)
Started GET “/assets/jquery_ujs.js?body=1” for 127.0.0.1 at 2011-07-05
Served asset /jquery_ujs.js - 304 Not Modified (0ms) (pid 2999)
Started GET “/assets/jquery.js?body=1” for 127.0.0.1 at 2011-07-05
10:12:21 Served asset /jquery.js - 304 Not Modified (0ms) (pid 2999)
Started GET “/assets/shared/jquery.form.js?body=1” for 127.0.0.1 at
2011-Served asset /shared/jquery.form.js - 304 Not Modified (0ms) (pid
2999)
and so on…