Skip to content

Instantly share code, notes, and snippets.

@Soldo
Created March 30, 2012 13:01
Show Gist options
  • Save Soldo/2251351 to your computer and use it in GitHub Desktop.
Save Soldo/2251351 to your computer and use it in GitHub Desktop.
<%= link_to(refinery.blog_post_path(@post.next)) do %>
<h1>Next</h1>
<h2><%= truncate(@post.next.title).html_safe %></h2>
<% end %>
@magpieuk
Copy link

 <%= link_to(refinery.blog_post_path(@post.next), :class => "foo") do %>
 <h1>Next</h1>
 <h2><%= truncate(@post.next.title).html_safe %></h2>
 <% end %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment