Re: [Rails] Active Record problem
by Andrew Stone other posts by this author
Aug 31 2005 4:27AM messages near this date
[Rails] Active Record problem
|
[Rails] strange difference between has_one and has_many
Nadav,
I haven't worked much with has_and_belongs_to_many but I think if you change
the line
has_and_belongs_to_many :operations
--to--
has_and_belongs_to_many :operations, :join_table => "operations_users"
you should be able to access all operations for a user by @user.operations
Again, not sure...but this seems like this is the correct way to do it.
--
Andrew Stone
Attachments:
unknown1
unknown2
unknown3
unknown4
Thread:
Nadav Blum
Andrew Stone
|