# Undefined method \`phone\_format'

**URL:** <https://www.ruby-forum.com/t/undefined-method-phone-format/132573>\
**Category:** Rails\
**Created:** [March 21, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/undefined-method-phone-format/132573 "2008-03-21T16:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jattie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c0e974/32.png) [@Jattie](https://www.ruby-forum.com/u/Jattie)\
**Post date:** [March 21, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/undefined-method-phone-format/132573/1 "2008-03-21T16:23:28Z")

</div>

I have a live rails application running on a public website and I am  
trying to get this up and running on a development/test system to make  
some minor changes offline. I’ve managed to set this up on  
instantrails version 1.4, since this gives me the closest match to my  
current live system, but I seem to be missing some libraries or  
something. I tried this on the latest version of instantrail too and I  
get the same message. I searched all the discussions and google and  
cannot find the solution.

Can someone point me in the right direction. What is missing and how  
can I find that?

Showing app/views/holidays/camptype.rhtml where line #71 raised:

undefined method `phone\_format’ for #\<#Class:0x3274cd4:0x3274748\>

Extracted source (around line #71):

68:

 \<%= mail\_to  
camp.leader.contact.email, camp.leader.contact.name, :encode =\> “hex”  
%\>  
  
69: \<%=  
camp.leader.contact.text\_address.split("\n").join(’, ') %\>  
   
  
70:  
71: P \<%=  
phone\_format(camp.leader.contact.primary\_phone) %\>  
72: 
\<%  
unless camp.full? %\>YES\<% else %\>NO\<% end %\>
  
73:   
74: \<% toggle = toggle ? false : true %\>

---

<div class="post-metadata">

**Author:** ![Jattie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c0e974/32.png) [@Jattie](https://www.ruby-forum.com/u/Jattie)\
**Post date:** [March 21, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/undefined-method-phone-format/132573/2 "2008-03-21T17:35:28Z")

</div>

On Mar 21, 2008, at 11:22 AM, Jattie wrote:

> can I find that?  
> 69: \<%=  
> camp.leader.contact.text\_address.split(“\n”).join(', ') %\>  
>    
>   
> 70:  
> 71: P \<%=  
> phone\_format(camp.leader.contact.primary\_phone) %\>  
> 72:
> 
> \<%  
> unless camp.full? %\>YES\<% else %\>NO\<% end %\>
>   
> 73:   
> 74: \<% toggle = toggle ? false : true %\>

I’d first look for this method in app/helpers/holidays\_helper.rb given  
how it is used.

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid
