Forum: Rails deployment restful question

Posted by Mark Preston (markp)
on 2009-08-18 01:40
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.