0

我在places.js.coffee查看位置控制器的表单页面时在文件内部工作。出于某种原因,我对 CofeeScript 文件所做的任何更改都不会反映在浏览器中。我尝试重新启动服务器,运行rake assets:clean并手动删除内容/tmp/cache/assets/,但没有任何效果。

我查看了终端中 rails 服务器的输出,发现了一些奇怪的东西:

Started GET "/assets/offers.js?body=1" for 127.0.0.1 at 2013-01-26 09:35:56 -0500
Served asset /offers.js - 304 Not Modified (0ms)


Started GET "/assets/partners.js?body=1" for 127.0.0.1 at 2013-01-26 09:35:56 -0500
Served asset /partners.js - 304 Not Modified (0ms)


Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-26 09:35:56 -0500
Served asset /application.js - 304 Not Modified (6ms)

places.js无处可寻!为什么是这样?我该如何解决?

4

1 回答 1

0

确保您的app/assets/javascripts/application.js文件包含以下行:

//= require places
于 2013-01-26T15:25:35.143 回答