I'm using friendly_id
5.2.
By default, it just appends a random UUID on the end for what would be duplicate slugs (post-60948cdd-d73c-4b77-9676-ecdf7727c396
), but with the sequentially_slugged
method you can just turn it back to how it worked in version 4 where it appends a dash and then a number on the end (post-7
).
What's the best way to replace the dash with a forward slash? post/7
(ordered by when they were created).
As far as I understand, you'd want to allow duplicate slugs in the gem and then just change the routes on Rails' end.