Forum: Ruby on Rails Newbie Question on Link_to Method

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ming M. (Guest)
on 2006-03-16 08:15
(Received via mailing list)

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
Nicolas B. (Guest)
on 2006-03-16 09:58
(Received via mailing list)
:controller => "foler name" :action => "page name"

which translates to:

link_to "New Issue", :controller => "issues", :action => "new"
This topic is locked and can not be replied to.