Friday, August 30, 2013

Tagging in Rails

A very simple plugin to implement tagging feature in rails application is acts-as-taggable-on. Install the gem, specify the field in the model on which you want to put tags, add a tag field in the form, and you are ready to tag your model object. Implementation details can be found in following links.

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

http://railscasts.com/episodes/382-tagging
http://alexmuraro.me/posts/acts-as-taggable-on-a-short-tutorial/

Popularity of this plugin can be found in The Ruby Toolbox -
https://www.ruby-toolbox.com/categories/rails_tagging

No comments: