FriendlyID

Installation Steps

Step 1
Install the gem

sudo gem install friendly_id
cd "your project name"
script/generate friendly_id
rake db:migrate

Step 2
Put this in your config/environment.rb

config.gem "friendly_id"

Step 3
Add some code to your models, example:

class Post < ActiveRecord::Base
  has_friendly_id :title, :use_slug => true
end

Documentation and Examples

seo
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License