Skip to content

Instantly share code, notes, and snippets.

@robbyrussell
Created December 18, 2008 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbyrussell/37339 to your computer and use it in GitHub Desktop.
Save robbyrussell/37339 to your computer and use it in GitHub Desktop.
<ul class="horizontal main_nav">
<li <%= 'class="active"' if current_page?( root_path ) -%>><%= link_to_unless_current( 'Plans', root_path, { :title => 'Boxcar Plans' } ) -%></li>
<li <%= 'class="active"' if current_page?( contact_path ) -%>><%= link_to_unless_current( 'Contact Us', contact_path, { :title => 'Contact Us' } ) -%></li>
<li <%= 'class="active"' if current_page?( support_path ) -%>><%= link_to_unless_current( 'Get Support', support_path, { :title => 'Get Support' } ) -%></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment