Skip to content

Search-engine friendly URLs for your models by simplifying the overriding of `to_param` in ActiveRecord models

License

Notifications You must be signed in to change notification settings

kaiuhl/pretty-param

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Search-engine friendly URLs for your models by simplifying the overriding of `to_param` in ActiveRecord models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages