Skip to content

Instantly share code, notes, and snippets.

@djones
Created June 18, 2009 02:33
Show Gist options
  • Save djones/131660 to your computer and use it in GitHub Desktop.
Save djones/131660 to your computer and use it in GitHub Desktop.
<div id='blog'>
<h2>Fresh off the blog</h2>
<h3><%= link_to @posts.first[:title], @posts.first[:link] %></h3>
<p>
<%= truncate(strip_tags(@posts.first[:encoded]), :length => 285) %>
</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment