I know this question was made 2 years ago, but if it can help future readers, friendlyId gem now combines the "candidate" functionality, which can help with this.
class Post < ActiveRecord::Base extend FriendlyId friendly_id :slug_candidates, use: :slugged def slug_candidates [ [:created_at, :Title], ] end end
More info at gem repo .
source share