Topic: Using link_to method to link to another controller

I've got a controller called home with a view called index.rhtml and in my view I have the following code

<%= link_to "Client List", :action => "clients" %>

The problem is that this looks for a view called clients but I want to go to a controller called clients.  How do I link to the client controller?

Re: Using link_to method to link to another controller

It's ok, I just worked it out.

<%= link_to "Client List", :controller => 'clients' %>

Last edited by sydneyfx (2007-02-02 02:59:59)