Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Search-engine friendly URLs for your models by simplifying the overriding of `to_param` in ActiveRecord models
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
pkg
spec
.DS_Store
Gemfile
LICENSE
README.md
Rakefile
pretty_param.gemspec

README.md

Pretty Param

Easily make your resource-based routes more search engine friendly without doing a bunch of crazy shit or changing your routes.

Installation

Gemfile:

gem 'pretty_param'

Usage

class Person < ActiveRecord::Base
    has_pretty_param :first_name, :last_name
end

# => "http://localhost:3000/people/1-ronald-mcdonald"
Something went wrong with that request. Please try again.