I’m going to take another stab at this question (my first one received
I have two models:
I have two tables:
I let the scaffolding fly and it created the CRUD goodness for each
model, as expected.
However, I want to have only one view/controller “set” for both
models; when I refer to “set”, I mean having a generic controller
called Library with methods for create, edit, show, destroy, and list,
but these methods would access and manipulate this combined data set
of authors and their books from both models.
After sifting through both the controllers and views and adding
those relationships (described above) is there any way to:
a) run the scaffolding again so that it will take these new
relationships into account?
b) if not, how should I proceed?
I am a complete Ruby/RoR/MVC luddite and am open to any suggestions