Displaying 1 result from an estimated 1 matches for "links_sidebar".
2006 Jul 06
0
Layouts, Searching/Sorting
...ews_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 an argument? Other suggestions?
2. I''m used to building searches and sorting mechanisms with PHP that
analyze a $_GET request and display da...