简体   繁体   English

application.js中的更改无法在带有jQuery的Rails 3.1.3中生效

[英]Change in application.js can not take effect in rails 3.1.3 with jquery

We just found something strange with our rails 3.1.3 app's application.js. 我们刚刚在Rails 3.1.3应用程序的application.js中发现了一些奇怪的东西。 The problem is that even we purposely change the code from right to wrong in application.js, the right code (before change) is still executed. 问题在于,即使我们有意将application.js中的代码从正确更改为错误,正确的代码(更改之前)仍会执行。 The change in application.js does not change the behavior of app at all. application.js中的更改完全不会更改应用程序的行为。 It seems that the application.js has been frozen and can not be modified. 看来application.js已冻结,无法修改。 Any suggestion how to fix this problem? 有什么建议如何解决这个问题? thanks so much. 非常感谢。

如果您正在使用资产管道,则可能需要:

rake assets:precompile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM