undefined method `simple_nested_form_for'

霸气de小男生 提交于 2019-12-13 02:59:31

问题


Why am I getting this error when trying to use the nested_form Rails plugin?


回答1:


Add the gem from the github directly, because the gem on rubygems is old:

gem "nested_form", :git => 'git://github.com/ryanb/nested_form.git'



来源:https://stackoverflow.com/questions/8195107/undefined-method-simple-nested-form-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!