Restful question

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

Extracted source (around line #53):

50: <%= link_to ‘Enter Values’, new_number_path %>
53: <%= link_to ‘Email us’, contact_number_path %>

Thanks in advance for the help

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs