Browse files

Merge pull request #4 from nodanaonlyzuul/master

Gemified!
  • Loading branch information...
2 parents 985651d + db6d38c commit b01865c528d74a5e07b3099db7b8bf08e1d53481 @nodanaonlyzuul nodanaonlyzuul committed Nov 9, 2011
Showing with 22 additions and 1 deletion.
  1. +8 −1 README.rdoc
  2. +14 −0 slugify.gemspec
View
9 README.rdoc
@@ -3,7 +3,14 @@
Generate slugs for your models
-== Installation
+== Install as a rails plugin or or as a gem
+
+...then add the following to a model you'd like to slug:
+
+ class MyClass < ActiveRecord::Base
+ include Slugify
+ slugify :title
+ end
Throw it in vendor/plugins (with script/plugin install, braid, submodules, or whatever your preferred installation method), and add the following to a model you'd like to slug:
View
14 slugify.gemspec
@@ -0,0 +1,14 @@
+$spec = Gem::Specification.new do |s|
+ s.name = "slugify"
+ s.description = "Generate slugs for your ActicveRecord models"
+ s.version = '0.1.4'
+ s.summary = "A Command-Line tool for exploring your flickr account"
+
+ s.authors = ['Scott Taylor', 'Stephen Schor']
+ s.email = ['scott@railsnewbie.com', 'beholdthepanda@gmail.com']
+ s.homepage = 'https://github.com/nodanaonlyzuul/flickr_cli'
+
+ s.files = Dir['lib/*','lib/slugify/*']
+
+ s.rubyforge_project = 'nowarning'
+end

0 comments on commit b01865c

Please sign in to comment.