On 13 July 2012 15:35, Jean-Sébastien D. <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #1068577:
>> On 13 July 2012 14:58, Jean-Sbastien D. <li...@ruby-forum.com> wrote:
>>> class MusicInterest < ActiveRecord::Base
>>>   has_many :music_interest_managers
>>>   has_many :clients, through => :music_interest_managers
>>> end
>>> class MusicInterestManager < ActiveRecord::Base
>>>   belongs_to :music_interests
>>
>> How many music_interests does it belong to.  The fact that you have
>> used the plural suggests it belongs to several, but that does not seem
>> likely.
>>
>>> uninitialized constant ActivitiesManager::Customers
>> ActivitiesManager and Customers?  Where did they come from?
>>
>> How are you getting on with the tutorials?
>>
>> Colin
>
> Sorry the example customer and music_interest_manager was just an
> example, the customer and activities_managers is my actual names. Here
> the real test lookup
>
> class ActivitiesManager < ActiveRecord::Base
>   belongs_to :customers

If you followed my advise and worked through some tutorials you might
not make so many silly mistakes.  How many customers does an
ActivitiesManager belong to?  The fact that you have said belongs_to
customers suggests that it belongs to more than one customer, which is
unlikely.

>   belongs_to :activities

Ditto

Colin

-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en-US.

Reply via email to