Ruby on Rails
ActsAsPermalink

acts_as_permalink is a neatly packaged tool for adding permalink capabilities to a model, similar to how Typo does it.

you use it like this:


class Monkey < ActiveRecord::Base
  acts_as_permalink :name
end

That’s it! It assumes you have a field named permalink, and this example assumes a method named name.

acts_as_permalink can be found in a very raw form here A couple features I’d like to add are the ability to find a permalinked model by its absolute URL, and also some validation magic. Please use this page to discuss what you’d like out of a_a_p.

-Jeremy Voorhis

———————-

WikiGardening required. Could this be packaged as a nice neat plugin?

Its in the works…

See also Acts As Urlnameable Plugin