Defining Association
Ken Yu
3 posts
|
Is there an example of how to define associations in the book? For example, if I want to add authors as new model/table and associate that with book, how would I do that? Thanks |
Ken Yu
3 posts
|
Just to clarify, I did create and updated the model for author so it has the relationship definitions such as has_many to book but having hard time associating that with the script/data that would be needed on the UI side to reflect this as either a drop down or choice list. Thanks |
Sam Ruby
197 posts
|
I’m glad you clarified your question. Do the form.select and form.collection_select examples in section 22.5 on page 505 of the Beta 1.5 PDF address your question? |
Ken Yu
3 posts
|
Sam, Thank you very much. I guess I should have read past the examples. |
4 posts, 2 voices
