📅  最后修改于: 2022-03-11 15:00:28.091000             🧑  作者: Mango
class Post < ActiveRecord::Base
extend FriendlyId
friendly_id :slug_candidates, use: :slugged
def slug_candidates
[
[:created_at, :Title],
]
end
end