Sha256: cd3d7a47057ff58f5d9c29ee9c842d06b50f03214b69ec5de3e9e5ef0386fa1f
Contents?: true
Size: 549 Bytes
Versions: 13
Compression:
Stored size: 549 Bytes
Contents
<h1>Friendly</h1> <p>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.</p> <table> <thead> <tr> <td>Title</td> <td style='width: 100px;'>Category</td> <td>Friendly URL</td> </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> <td><%= post.title %></td> <td style='width: 100px;'><%= post.category %></td> <td><%= link_to post.slug, post %></td> </tr> <% end %> </tbody> </table>
Version data entries
13 entries across 13 versions & 1 rubygems