This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Matt Kidd
Ranch Hand
Posts: 267
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic