Re: [Rails] Re: I need help building a relationship model.

2015-01-13 Thread Colin Law
On 13 January 2015 at 01:20, David Williams wrote: > Colin Law wrote in post #1166568: >> On 12 January 2015 at 21:40, David Williams >> wrote: >>> Right now, >>> my Event.rb >>> has belongs_to :activism_co_user >> >> What?? >> >>> has_one :category >>> >>> Activism_co_user.rb >>> has_many :event

[Rails] Re: I need help building a relationship model.

2015-01-12 Thread David Williams
Colin Law wrote in post #1166568: > If I understand correctly then possibly you will want a join model > called something like attendance where > user has_many attendances > user has_many events through attendances > > event has_many attendances > event has_many users through attendances > > attend

[Rails] Re: I need help building a relationship model.

2015-01-12 Thread David Williams
Colin Law wrote in post #1166568: > On 12 January 2015 at 21:40, David Williams > wrote: >> Right now, >> my Event.rb >> has belongs_to :activism_co_user > > What?? > >> has_one :category >> >> Activism_co_user.rb >> has_many :events >> >> The table itself has quite a few properties that describe