Rails 嵌套模型
嘿,我在这里问了一个问题 Rails 关联帮助,这个人指导我在这里学习嵌套属性,http://railscasts.com/episodes/196-nested-model-form-part-1 ,这里 http://railscasts.com/episodes/197-nested-model-form-part-2 。用于添加字段的 link_to 不会响应我所做的任何操作
hey I asked a question here Rails association help , this person directed me to learn nested attributes here , http://railscasts.com/episodes/196-nested-model-form-part-1 , and here http://railscasts.com/episodes/197-nested-model-form-part-2 . The link_to 's to add fields wont respond to anything I do
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我同意 jimworm 的观点,因为查看您正在使用的代码的相关部分确实很有帮助。我还想指出,Ryan 在这些 Railscasts 中创建了 nested_form gem,它非常适合做多个-相关模型的模型形式。我经常在我的表单中使用这个宝石。
I agree with jimworm in that it would be really helpful to see the relevant parts of the code that you are working with. I also want to point out that from those Railscasts Ryan created the nested_form gem which works really well for doing a multi-model form for associated models. I use this gem quite often for my forms.