未定义的方法“simple_nested_form_for”
我在尝试使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要安装 simple_form 才能正常工作。
You need to have simple_form installed for this to work.