FriendlyId is an awesome gem for slugging and permalinking for Active Record. It works like a charm except one case: when you set friendly_id field in a before_validation callback. Here’s an example: It happens because FriendlyId uses a before_validation callback to set a slug. This method is invoked before any before_validation callbacks that you define […]

Read more at the source