Applying list-item format depending on action


What would be the best way to do this? I have a list and I want one
item to be underlined (depending on the action that I am on). Do I?:

Have a bunch of if statements:

if :controller => ‘admin’, :action => ‘list’

<li id="current">Pages</li>


  • Pages
  • end

    What do you think? Is there a better way to do this?