This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | ||
| |
README.markdown | ||
| |
Rakefile | ||
| |
generators/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
install/ | ||
| |
lib/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.markdown
Categorizable
Simply categorize (tag) your ActiveRecord models.
Example
class Item < ActiveRecord::Base
categorizable
end
item = Item.create :category_names => 'Example Category, Item'
Categorizable::Category.find :all # => [
#<Categorizable::Category id: 1, name: "Example Category", ...>,
#<Categorizable::Category id: 2, name: "Item", ...>
]
item.category_names # => 'Example Category, Item'
relative = Item.create :category_names => item.category_names
Item.related_to 'Example Category' # => [item, relative]
item.relatives # => [relative]
Install
$ script/plugin install git://github.org/boof/categorizable
or
$ git submodule add git://github.org/boof/categorizable vendor/plugins/categorizable
$ cd vendor/plugins/categorizable && ruby install.rb
Copyright (c) 2008 Florian Aßmann, released under the MIT license








