# ActionView::TemplateError (undefined method

**URL:** <https://discuss.rubyonrails.org/t/actionview-templateerror-undefined-method/28205>\
**Category:** rubyonrails-talk\
**Created:** [April 18, 2008, 9:29am UTC](https://discuss.rubyonrails.org/t/actionview-templateerror-undefined-method/28205 "2008-04-18T09:29:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ubhay](https://avatars.discourse-cdn.com/v4/letter/u/90ced4/32.png) [@ubhay](https://discuss.rubyonrails.org/u/ubhay)\
**Post date:** [April 18, 2008, 9:29am UTC](https://discuss.rubyonrails.org/t/actionview-templateerror-undefined-method/28205/1 "2008-04-18T09:29:55Z")

</div>

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 ☹ ).

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: &nbsp;&nbsp;&nbsp;&nbsp;52: \<tr\> &nbsp;&nbsp;&nbsp;&nbsp;53: \<td\> &nbsp;&nbsp;&nbsp;&nbsp;54: \<!-- contact divs start--

> 

&nbsp;&nbsp;&nbsp;&nbsp;55: \<%contacts = {"billing" =\> @domain.billing\_contact, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;56: "registrant" =\> @domain.registrant\_contact, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;57: "tech" =\> @domain.tech\_contact, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;58: "admin"=\> @domain.admin\_contact,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vendor/rails/activerecord/lib/active\_record/ attribute\_methods.rb:206:in `method\_missing'
