Skip to content

Instantly share code, notes, and snippets.

@pmoran
Created Jun 20, 2010
Embed
What would you like to do?
<% menu_items.each do |page| %>
<% if is_current_page?(page) %>
<li class='current'><p><%= page.title %></p> </li>
<% else %>
<li><%= link_to_page(page) %></li>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment