[Rails] .find() with simple :join

2010-02-11 Thread John Mcleod
Hello all, I about to pull my hair out. I have two models Activities and Activity_types Activities -- id name activity_type_id Activity_types -- id name - Associations - class Activity ActiveRecord::Base has_many :activity_types end class ActivityType

Re: [Rails] .find() with simple :join

2010-02-11 Thread Mat Brown
You've got your has_many and belongs_to backwards. On Thu, Feb 11, 2010 at 11:34, John Mcleod li...@ruby-forum.com wrote: Hello all, I about to pull my hair out. I have two models Activities and Activity_types Activities -- id name activity_type_id Activity_types