This repository was archived by the owner on Jul 6, 2022. It is now read-only.
permalink_fu
Directory actions
More options
Directory actions
More options
permalink_fu
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
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.