On Fri, Apr 29, 2011 at 8:08 AM, amrit pal pathak
[email protected] wrote:
I have one controller(home) with two methods(empty) ,name are
index,new).Corressponding have 2 .html.erb files in home view.How to
give a link from file index.html.erb to new.html.erb i.e syntax?
I tried <%=link_to ‘Click me’,home_new_path%>,but it failed
FYI, “it failed” is not a very useful problem description.
Regardless, you should be able to see the proper syntax if you run
rake routes, and you should be able to easily confirm that the path
is correct in the generated page via
view source in your browser.
Hassan S. ------------------------ [email protected]