azabaj / has-permalink
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
azabaj (author)
Tue Jun 24 07:33:43 -0700 2008
commit 27b51de0a561d9738a17740e2083fd156f21ea37
tree 11effc9bdf4e797079871f6c16a716b93ae64fba
parent c8295448201b9e63b3cbf8ea0dc8eeff48b46e9d
tree 11effc9bdf4e797079871f6c16a716b93ae64fba
parent c8295448201b9e63b3cbf8ea0dc8eeff48b46e9d
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
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

