Friendly

FriendlyId provides slugging and permalink support for Active Record. It lets you create pretty URLs and work with human-friendly strings as if they were numeric ids.

<% @posts.each do |post| %> <% end %>
Title Category Friendly URL
<%= post.title %> <%= post.category %> <%= link_to post.slug, post %>