search for: list_by_cat

Displaying 1 result from an estimated 1 matches for "list_by_cat".

2005 Dec 02
0
RE: How to test for controller
...for example lets say i have an > admin controller. > > Example > -------------------- > <% if @controller = admin %> ---- What actually would this syntax be? > <% @categories.each do |category| %> > <%= link_to category.name, :action => "list_by_cat", :id => > category.id %><br /> > <% end %> > > What is the variable name to get at the current controller? <% if controller.controller_name == ''admin'' -%> -- rick http://techno-weenie.net _______________________________________________ R...