Ask A Question

Notifications

You’re not receiving notifications from this thread.

Tagging Posts(Or whatever) in rails without any gems

Samuel Janes asked in Site Feedback

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!

Reply

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?

Reply

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

Reply

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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,563+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.