找不到 Rails 3.1rc4 defaults.js [英] Rails 3.1rc4 defaults.js not found

查看:29
本文介绍了找不到 Rails 3.1rc4 defaults.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个全新的 Rails 3.1rc4 项目.在生成脚手架、迁移并创建新条目后,我注意到我无法销毁刚刚创建的条目.

I have a brand new Rails 3.1rc4 project. After generating a scaffold, migrating and creating a new entry I noticed that I could not destroy the entry I had just created.

结果是找不到/assets/defaults.js",所以没有弹出销毁确认对话框.

It turns out that "/assets/defaults.js" can't be found so the destroy confirmation dialog isn't popped up.

我认为这可能与新的资产管道有关,但寻找解决方案对我没有多大帮助.

I figure this might have something to do with the new asset pipeline, but searching for solutions has not helped me out much.

知道为什么找不到 defaults.js 吗?

Any idea why defaults.js can't be found?

感谢您的帮助.

推荐答案

很可能是因为引用了

javascript_include_tag :defaults

仍在应用程序布局中.该引用应更改为

is still in the application layout. That reference should be changed to

javascript_include_tag "application"

这篇关于找不到 Rails 3.1rc4 defaults.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆