All threads / Tagging Posts(Or whatever) in rails without any gems

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!

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

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.