small medium large xlarge

Generic-user-small
19 Aug 2008, 18:03
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

Generic-user-small
19 Aug 2008, 18:12
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

Samr_small_pragsmall
19 Aug 2008, 20:55
Sam Ruby (634 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?

Generic-user-small
21 Aug 2008, 03:02
Ken Yu (3 posts)

Sam,

Thank you very much. I guess I should have read past the examples.

You must be logged in to comment