[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-30 Thread Duane Morin
Duane Morin wrote in post #1043076: > rwz wrote in post #1043018: >> What version of rails do you use? This setup works fine for me on >> 3.1.3 and 3.2.1 > > This is on version 3.0.10. Since it should work and seems to work for > you I thought maybe the altered table names could be causing a probl

[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-30 Thread Duane Morin
rwz wrote in post #1043018: > What version of rails do you use? This setup works fine for me on > 3.1.3 and 3.2.1 This is on version 3.0.10. Since it should work and seems to work for you I thought maybe the altered table names could be causing a problem, but I set up a new app with just these th

[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-29 Thread rwz
Also, try this: has_many :users, :through => :campaigns, :source => :users On Jan 30, 10:52 am, Duane Morin wrote: > Hi.  I'm hoping somebody can tell me that I've just gotten my syntax > wrong and I can in fact do what I want to do. > > I've got a Group, and a Group has_many Campaigns. > > Campa

[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?

2012-01-29 Thread rwz
What version of rails do you use? This setup works fine for me on 3.1.3 and 3.2.1 On Jan 30, 10:52 am, Duane Morin wrote: > Hi.  I'm hoping somebody can tell me that I've just gotten my syntax > wrong and I can in fact do what I want to do. > > I've got a Group, and a Group has_many Campaigns. >