search for: type_service

Displaying 1 result from an estimated 1 matches for "type_service".

2008 Feb 22
4
has_many and belongs_to in rails 2.0.2 (child.Parent) is not working
Hi All I have 2 models working well in rails 1.2.6 : class TypeService < ActiveRecord::Base has_many :Services end class Service < ActiveRecord::Base belongs_to :TypeService end I was able to get the name of the service with Rails 1.2.3: s = Service.find(1) name_type_service = s.TypeService.name <<-- Now with rails 2.0.2 that doesn''t work With rails 2.0.2 s = Service.find(1) s.TypeService.name nil <<-- TypeService is nil with rails 2.0.2 Does any one know why that "child.parent" is not working with rails 2.0.2 anymore?...