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
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
2 matches
Mail list logo