public
Fork of technoweenie/mephisto
Description: User-friendly blogging with multisite support and asset managment
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/emk/mephisto.git
Spyridon Vasileiadis (author)
Sun Mar 15 06:53:26 -0700 2009
emk (committer)
Sun Mar 15 06:56:38 -0700 2009
commit  0535b5ff99d45c94e6cb5d54d8ddaf24081840bd
tree    a89976f39245db9125dfb1dc3f21c0430d87953a
parent  c05e9ee1c3e6580b0bff72051c294cc955581001
mephisto / vendor / plugins / permalink_fu
name age message
..
file README Loading commit data...
file init.rb
directory lib/
directory test/
vendor/plugins/permalink_fu/README
PermalinkFu

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.