norman / friendly_id

FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
http://norman.github.io/friendly_id/
MIT License
6.15k stars 590 forks source link

Error in the doc #1014

Open jbschrades opened 1 year ago

jbschrades commented 1 year ago

This example in the doc for custom slugs (https://norman.github.io/friendly_id/file.Guide.html#Column_or_Method_) is wrong. Should be:

friendly_id :name_and_location, use: :slugged

This tripped me up for a few.