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