ActionView::TemplateError (undefined method

Hi,

I am using following configuration on my production environment:

Rails (2.0.2)
Mongrels
Ruby 1.8.6

I am getting following error after my server runs for some hour (6-8
hr). Also, the problem
goes away once i restart all my mongrels (only to come up in next 6-8
hr :frowning: ).

Following is the trace of error:

ActionView::TemplateError (undefined method `billing_contact’ for
#Domain::ResellerDomain:0x2aaaaea710f8) on line #55 of domain/
contact_information.html.erb:
52:


53:
54: <!-- contact divs start–
55:   <%contacts = {"billing" => @domain.billing_contact,
  56:     "registrant" => @domain.registrant_contact,
  57:     "tech" => @domain.tech_contact,
  58:     "admin"=> @domain.admin_contact,

      vendor/rails/activerecord/lib/active_record/

attribute_methods.rb:206:in `method_missing’


My classes are defined as:

module Domain

class DomainProduct < ActiveRecord::Base
set_table_name :domain_domain_products
has_one :privacy_product, :class_name =>
“Domain::Privacy”, :foreign_key => “domain_id”
belongs_to :registrant_contact, :class_name =>
‘Store::Contact’, :foreign_key => ‘registrant_contact_id’
belongs_to :admin_contact, :class_name =>
‘Store::Contact’, :foreign_key => ‘admin_contact_id’
belongs_to :tech_contact, :class_name =>
‘Store::Contact’, :foreign_key => ‘tech_contact_id’
belongs_to :billing_contact, :class_name =>
‘Store::Contact’, :foreign_key => ‘billing_contact_id’
belongs_to :user, :class_name => ‘Store::User’, :foreign_key =>
‘user_id’
belongs_to :status, :class_name => ‘Domain::Status’, :foreign_key
=> ‘status_id’

....
....
some more stuff in the class

/****Class definition end ******/

module Domain
class ResellerDomain < DomainProduct
end
end

/******class definition end ****/

I have done a lot of google search to fix this but to no avail.
Any help would be greatly appreciated.

Thanks,
ubhay.