I understand!
Looking this:

User has many contacts
Contacts has field town
Then to find user contacts in town write User.contacts.find(:town =>
'Yellow')'
Why not?

On 30 окт, 06:29, Thorsten Müller <[EMAIL PROTECTED]> wrote:
> Sounds good to me. Would do it the same way.
> The intermediate table name is always a nasty decision to make.
> I wouldn't use the acts_as variant, since that's used by plugins and
> could be confusing.
> I would go for either "users_towns" or "user_town_contacts"
> Most likely for the user_town_contacts variant, if there is any
> chance, that users and towns will in future get more kinds of
> relations.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to