azabaj / has-permalink

Easy permalink plugin for Ruby on Rails.

This URL has Read+Write access

azabaj (author)
Tue Jun 24 07:33:43 -0700 2008
commit  27b51de0a561d9738a17740e2083fd156f21ea37
tree    11effc9bdf4e797079871f6c16a716b93ae64fba
parent  c8295448201b9e63b3cbf8ea0dc8eeff48b46e9d
name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
README
HasPermalink
============

This is an ActiveRecord plugin for converting model methods to permalinks.


Example
=======

class Post < ActiveRecord::Base
  has_permalink :from => "title",
                :to => "permalink"
end

@post.title = "Árvíztűrő tükörfúrógép"

@post.save

@post.permalink #=> "arvizturo-tukorfurogep"

Copyright (c) 2007 [András Tarsoly, Ferenc Fekete], http://xpnindustries.com released under the MIT license