New to list. Just read, Agile Web D. with Rails – good book.
Ok, on to my question.
I’d like to use a single layout for my entire application, but I also
want to use modules. This may be a mistake, but I’m also just kind of
curious how to link properly in this case. So, for instance, I’ve code
like this my layout:
<%= link_to ‘List’, :controller => ‘report’, :action => ‘list’ -%>
<%= link_to ‘Applications’, :controller => ‘admin/application’, :action
=> ‘list’ -%>
When I go to the admin module, here’s what is rendered:
<a href="/admin/report/list">List</a> <a href="/admin/admin/application/list">Applications</a>
So, anyway to make link_to “module aware?” Perhaps I’m just doing