I have a primary layout that I’m using in several controllers. On my
sidebar I have a link that I set up as follows:
<div id="sidebar"> <%= link_to("Items", :action => "list") %> </div>
Everything is ok when I call it from my primary controller, but since I
am also calling the layout from a second controller that does not have
list defined I am getting an error.
What I’d like to do is make the action => “list” absolute so that it
goes to action => controller “primary” =>“list”
Is there any way to do that? Or else do I just have to define list a
second time in the second controller?