Skip to content

Instantly share code, notes, and snippets.

@theycallmeswift
Created February 5, 2013 15:28
<h1>Posts</h1>
<% if @posts.count > 0 %>
<% @posts.each do |post| %>
<blockquote>
<p><%= post.body %></p>
<small><%= post.email %></small>
</blockquote>
<% end %>
<% else %>
<p><em>Oops, doesn't look like there are any posts yet.</em></p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment