On Feb 13, 10:30 am, Marnen Laibow-Koser <[email protected]> wrote:
[...]
> class Run
>   has_and_belongs_to_many :users
> end
>
> class User
>   has_and_belongs_to_many :runs
> end
>
> That will create a join table (called runs_users) associating Users
> with Runs.
[...]

Again with the posting too quickly...I made a silly error in this
description.  Of course this won't *create* a join table, but it will
expect one in the database as I described.  Sorry about my incoherence
this morning.

Best,
--
Marnen Laibow-Koser
mar...@marnenorg
http://www.marnen.org
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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