Skip to content

Instantly share code, notes, and snippets.

@wfarr
Created October 18, 2008 05:34
Show Gist options
  • Select an option

  • Save wfarr/17606 to your computer and use it in GitHub Desktop.

Select an option

Save wfarr/17606 to your computer and use it in GitHub Desktop.
- (@posts.reverse)[0..10].each do |post|
%a{:href => "view/#{post.id}-#{post.slug}", :title => "#{post.title}" }
%h3= post.title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment