📜  gem friendly_id 与多列 s - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:28.091000             🧑  作者: Mango

代码示例1
class Post < ActiveRecord::Base
  extend FriendlyId
  friendly_id :slug_candidates, use: :slugged

  def slug_candidates
   [
    [:created_at, :Title],
   ]
  end
end