Newbie Question on Link_to Method


How do I use link_to method to link a page to another page in a
different views folder.

Say I have Projects and Issues, and on projects list page, I want a
hyper link ‘New Issue’ to link to new issue page.


How do I code in views\projects\list.rhtml to link to

this doesn’t work: <%= link_to “New Issue”, :action => “Issues/New” %>


Ming Ma

:controller => “foler name” :action => “page name”

which translates to:

link_to “New Issue”, :controller => “issues”, :action => “new”

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