Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

Tagging Posts(Or whatever) in rails without any gems

Site Feedback • Asked by Samuel Janes

I've been creating a test app for a couple of weeks know, and want to have a tagging system. It would also be cool if it was polymorphic, so multiple models could have tags.

Thanks!


Question - why do you want to not be using any gems? What exactly is your goal - to have a good tagging system or to learn how to implement tagging?


Hi TRADEO
I want to do this without gems so that I get experince and learn from it. My goal is to learn how to implement one and make it good


O.K., so if you want to learn, than these resources might help you:

https://www.google.bg/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=rails%20tagging%20from%20scratch

Otherwise, I would strongly advise you to use this:

https://github.com/mbleigh/acts-as-taggable-on

Btw, you can learn a lot if you have a look at the source code of ActsAsTaggableOn.

Cheers


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ 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.