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
  belongs_to :activities
class Activity < ActiveRecord::Base
  has_many :activities_managers
  has_many :customers,  :through => :activities_managers
class Customer < ActiveRecord::Base
  has_many :activities_managers
  has_many :activities,  :through => :activities_managers

I am just using this tools for administrative backend feature not the 
front end. I am just curious the way I wrote it down to see if its 
correct or if something else is wrong with my style of writing ruby.

-- 
Posted via http://www.ruby-forum.com/.

-- 
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