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 (
README
For Making slugs.
Made by Dan Webb.
How to use with Active Record:
# title :string(255)
# slug :string(255)
class Item < ActiveRecord::Base
has_slug :title, :slug, :always_update => true
def to_param
slug
end
def slug=(val)
unless new_record?
write_attribute(:slug, Slugjitsu::dirify(val, slug_scope))
else
super
end
end
end








