File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Nested Models not working in form, want an array of nested models Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Nested Models not working in form, want an array of nested models" Watch "Nested Models not working in form, want an array of nested models" New topic
Author

Nested Models not working in form, want an array of nested models

Matt Kidd
Ranch Hand

Joined: Jul 17, 2002
Posts: 259
https://github.com/mkidd/cookbook

I'm slightly confused with how models are set up within Ruby/RoR so that one model has control of sub models. that are nested within it. I think I have the models set up so that they reference each other correctly but not only does my view not allow me create the nested models but even but when the form is submitted it attempts to find ingredients.recipe_id (appears correct) but it always never finds it.

This may have to do with the form. But I'm not sure why it's complaining since an empty array should be okay.

To think my coworker had me thinking it would be easy to build this app after he showed me scaffolding
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nested Models not working in form, want an array of nested models
 
Similar Threads
With JPA how can I force loading of nested lazy collections?
An array question
ArrayList populated table doesn't save values.
Struts & Commons File Upload & maxFileSize
JDBC-3 Design Question