i'm trying to use (Friendly_Id 5.0.0.Beta4) in (Rails 4) with 2 models but just work with one.
I have this models:
class Author < ActiveRecord::Base
has_many :articles
extend FriendlyId
friendly_id :name, use: :slugged
end
class Category < ActiveRecord::Base
has_many :articles
extend FriendlyId
friendly_id :title, use: :slugged
end
But friendly_id just work with Author model. Can anyone helpme?