Displaying 1 result from an estimated 1 matches for "users_sidebar".
2006 Jul 06
0
Layouts, Searching/Sorting
...iv>
<div id="sidebar">
<% if @controller.controller_name == ''news'' %><%= render(:partial =>
"news_sidebar") %><% end %>
<% if @controller.controller_name == ''users'' %><%= render(:partial =>
"users_sidebar") %><% end %>
<% if @controller.controller_name == ''links'' %><%= render(:partial =>
"links_sidebar") %><% end %>
</div>
...There has to be a much more DRY way of doing that. Perhaps a helper
that takes the controller name as...