FriendlyID

Categories: Coding Gems

FriendlyId is a gem that displays user readable text in the URL instead of a numeric ID value. This makes it easier for users to understand what page they are looking at just by looking at the URL.

External Links

https://github.com/norman/friendly_id

How to Include

gem 'friendly_id', '~> 4.0.10'

Example

In Model
extend FriendlyId
friendly_id :username

Contributing Users

andy, cara