> Please answer the question - how many customers does an
> activitiesmanager belong to?

An activity manager can have multiple customer and repeat many time the 
same customer. but an activity manager can only have one to one activity

So it should be has follow
class ActivitiesManager < ActiveRecord::Base
  belongs_to :customers
  belongs_to :activity
class Activity < ActiveRecord::Base
  has_one :activities_manager
class Customer < ActiveRecord::Base
  has_many :activities_managers
  has_many :activities,  :through => :activities_managers

> Reading it is not enough.  Work right through it, typing and running
> the code on your PC, make sure you understand every single line of
> code.  Do all the exercises.

In term of exercise i have done up to chapter 9 so far

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