Reputation: 1089
I'm learning mongodb and rails right now... I have two collection, User and Event
Both User and Event models can have multiple Address, can i use the same model with different views? Or ill need to have two more models???
Upvotes: 1
Views: 81
Reputation: 115541
You could keep only one Address
model. Simply use polymorphism as described here.
Upvotes: 1