Posts by ereboucas • 36 points
1 post
-
2
votes1
answer188
viewsA: Is it mandatory to use belongs_to in Activerecord?
There is no obligation but his example suggests that Article "belongs to" a Category. So the right thing to do is to use belongs_to :Category. In that case, the belongs_to requires the existence of…