# Restful question

**URL:** <https://www.ruby-forum.com/t/restful-question/173903>\
**Category:** Deployment\
**Created:** [August 18, 2009, 1:40am UTC](https://www.ruby-forum.com/t/restful-question/173903 "2009-08-18T01:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpaxton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8c91f0/32.png) [@mpaxton](https://www.ruby-forum.com/u/mpaxton)\
**Post date:** [August 18, 2009, 1:40am UTC](https://www.ruby-forum.com/t/restful-question/173903/1 "2009-08-18T01:40:23Z")

</div>

So I have an index.html.erb form and I’m trying to link it to an email  
form I created. I used the link below:

\<%= link\_to ‘Email us’, contact\_number\_path %\>

now I believe the layout is something like this:

\<%= link\_to ’ Email us’ , contact\_number\_path %\>  
link on the page name of form to link to? following by  
the path in the route.rb file?

When I run it I get the following error

undefined local variable or method `contact\_number\_path’ for  
#ActionView::Base:0x39ab264

Extracted source (around line #53):

50: \<%= link\_to ‘Enter Values’, new\_number\_path %\>  
51:  
52:  
53: \<%= link\_to ‘Email us’, contact\_number\_path %\>  
54:  
55:  
56:

Thanks in advance for the help
