Best way to generate slugs (human-readable IDs) in Rails

In Rails you can use #parameterize

For example:

> "Foo bar`s".parameterize 
=> "foo-bar-s"

Leave a Comment