Skip to content

Instantly share code, notes, and snippets.

@matid
Created February 28, 2009 18:42
Show Gist options
  • Save matid/72049 to your computer and use it in GitHub Desktop.
Save matid/72049 to your computer and use it in GitHub Desktop.
<h1>Articles</h1>
<% paginate(@articles).each do |article| %>
<div>
<h2><%= article.title %></h2>
<p><%= article.body %></h2>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment