if every different user has his own distinct books use " belongs_to "
and "has_many " in the completing model. on the other hand, if every
user has a certain amount of books, and some of the books are used for a
different user, you should use "has_and_belongs_to_many" method.
(example would be like the following, if b are for books and user1/2/3
for different users...)
=====this would be has and belongs to many===user 1 - - b1, b2, b3, b4
user 2 -- b1, b6, b8
user 3 -- b4, b5
etc
=====this would be belongs to ===
user 1 -- b1 , b2
user 2 -- b3, b4
user 3 -- b5, b6, b7
etc
...hope this helps.
good luck,
s
--
Posted via http://www.ruby-forum.com/.