Skip to main content

Hey Guys, What is the best way to add tags and categories to a rails blog application?!

Rails • Asked by Muhammad

I'm trying to build a blog & portfolio app using rails and I want to add tags to make the content organized, I'm trying to add acts_as_taggable_on but I'm struggling with it so I thought I might ask you guys! Thanks in advance.


You can use acts_as_taggable but you can really get the same functionality with categories and tags using a has_many_through relationship between your content and categories/tags.

You can see an example of how I did this with categories with a simple wiki app I built: here


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.