search for: pages_us

Displaying 1 result from an estimated 1 matches for "pages_us".

Did you mean: pages_s
2006 May 15
0
A simple, short model naming question.
I have a join-model providing "has_many :through" association between two models, User and Page [1]. I''m wondering if I may name that model UserPage instead of PagesUsers. Of course, if the association was a regular habtm, the association table should have been named "pages_users" by default. But in that case, the table (and therefore its name) would only be used internally by Rails. Whereas in the join-model case, we''re creating a full model, which would be exposed as a class. So I think I prefer UserPage that - as a class/object - is more intuitive and me...