:controller => "foler name" :action => "page name"
which translates to:
link_to "New Issue", :controller => "issues", :action
=> "new"
On 3/16/06, Ming Ma <mingworld@gmail.com> wrote:>
> Hi,
>
> 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.
>
> /Projects/List
> /Issues/New
>
> How do I code in views\projects\list.rhtml to link to
> views\Issues\new.rhtml?
>
> this doesn''t work: <%= link_to "New Issue", :action
=> "Issues/New" %>
>
> Thanks
>
> Ming Ma
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060316/f5934273/attachment.html