I have a side navigation that i want to change based on the controller.
How would i test for this in .rhtml. for example lets say i have an
<% if @controller = admin %> ---- What actually would this syntax be?
<% @categories.each do |category| %>
<%= link_to category.name, :action => “list_by_cat”, :id =>
<% end %>
What is the variable name to get at the current controller?