Answers for "gem friendly_id with multiple column s"

0

gem friendly_id with multiple column s

class Post < ActiveRecord::Base
  extend FriendlyId
  friendly_id :slug_candidates, use: :slugged

  def slug_candidates
   [
    [:created_at, :Title],
   ]
  end
end
Posted by: Guest on June-10-2021

Browse Popular Code Answers by Language