• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Set up Taggable as "acts_as_taggable" (wincent.dev, 5604977)

Created 10/16/2007, updated 3/12/2024
  • snippets

Following Rails conventions wrap the Taggable module up inside an ActiveRecord mix-in. This allows models to make use of it by doing an "acts_as_taggable".

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Refactoring (directory organization) for acts_as_taggable (wincent.dev, 36d2f80)
Add Taggable module (wincent.dev, 003f9f3) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).