Skip to content

Instantly share code, notes, and snippets.

@bernsno
Created August 6, 2009 18:27
Show Gist options
  • Save bernsno/163478 to your computer and use it in GitHub Desktop.
Save bernsno/163478 to your computer and use it in GitHub Desktop.
<ul>
<% @blog_posts.each do |blog_post| %>
<li>
<%= link_to blog_post.title, "##{blog_post.to_param}", :class => cycle("even", "odd") %>
</li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment