Adding tags to ActiveRecord models
Where we see how to add tags to the Article models of a blog application written in Ruby on Rails. The user should be able to enter a list of words separated by comma; the app should then create tags from the words entered if they don’t exist, and link them to the article.
Comments
Great DIY write-up. For some pre-built ready-to-use libraries see the ActsAsTaggable - Tags & Taggings, Categories & Categorizations section in the Awesome ActiveRecord listing. Cheers.
Sorry - wrong link - fixed here -> ActsAsTaggable - Tags & Taggings, Categories & Categorizations Cheers.
Post a comment