From my readings for a one to many relation we need a has_many on the parent side and a belongs_to on the child side. I was wondering does rails create errors or something if I am just interested in one part of the relation and just for example declare the belongs_to side in my model ?
From my readings for a one to many relation we need a has_many on
Share
There will be no errors,
has_manyandbelongs_tojust auto generate association methods on the class they are called on.For example: