Last Updated: February 25, 2016
· maciekkossuda

acts-as-taggable-on and friendly_id together

Need slug for tags?
Put code below into config/initializers

ActsAsTaggableOn::Tag.class_eval do
    extend FriendlyId
    friendly_id :name, :use => :slugged

and don't forget add slug column to tags table

you can find it here

1 Response
Add your response

Beautifully done...Nice :)

over 1 year ago ·