Plugins - Permalink Fu

StarAdd to favorites

This is a simple plugin extracted from Mephisto for creating permalinks from attributes.

  class Article < ActiveRecord::Base
    has_permalink :title
  end

This will escape the title, making it fit to use in a URL in the after_validation callback.

Use PermalinkFu.escape to escape a string manually if you like.

Rick Olson

http://svn.techno-weenie.net/projects/plugins/permalink_fu/

Rails' (MIT)

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
James Herdman 24 Apr 2007

This is a very concise plugin with little-to-no documentation. It'll get the job done, but you're flying blind for the most part.

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?