bananafishbones
2005-Feb-14 18:00 UTC
template for new controller to create data in more than one table
I am trying to replace the "new" scaffolding with my own controller and view so that I can create data in more than one table in my db from a single "new" view. The scaffolding does not allow me to enter values for any of the _id fields that are keys into my other table. I think that accessing the values from "new" would be the same as it is done in edit in the onlamp tutorial - but I dont understand how the rest of "new" should look. In terms of that tutorial, what I am trying to do is to enter the recipe category into the category table of my database through the recipe controller and recipe "new" view, rather than through the "edit" view. Does anyone have a template that I can build out from, or any other ideas on how to approach this? Thanks, Zach