未定义的方法“simple_nested_form_for”

发布于 2025-01-02 07:47:16 字数 307 浏览 1 评论 0原文

我在尝试使用nested_form Rails 插件时收到此错误,出了什么问题?

我已将 Gem 文件设置为 gem "nested_form", :git =>; 'git://github.com/ryanb/nested_form.git'

我已经安装了该插件(我正在使用 Rails 3.1)并重新启动了我的服务器。

编辑:我还将nested_form.js移至/assets/javascript/文件夹,因为如果我在源代码中单击它,则将其加载到公共文件夹中会出现路由错误。

I'm getting this error when trying to use the nested_form Rails plugin, what's wrong?

I've set my Gem file to say gem "nested_form", :git => 'git://github.com/ryanb/nested_form.git'

I've installed the plugin (I'm using Rails 3.1) and I've restarted my server.

Edit: I also moved the nested_form.js to the /assets/javascript/ folder because loading it in the public folder gave me a Routing Error if I clicked on it in the source.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔女人霸气范 2025-01-09 07:47:16

您需要安装 simple_form 才能正常工作。

You need to have simple_form installed for this to work.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文