N
N
Nikita2016-10-29 20:06:15
Ruby on Rails
Nikita, 2016-10-29 20:06:15

How to implement tags for a model?

Good day!
I would like to ask for help and find out if there are any implemented gems for adding a tag to a particular model?
For example, there is an Animal model, when creating a new animal, it is necessary to assign tags to it, for example, such as dog, male, puppy, in order to subsequently select from the database by tags.
Of course, you can use bool fields to define each parameter, but this would not be entirely rational.
The main task is that I can make a selection from the database for the necessary tags.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
N. Bekseitov, 2016-10-29
@niks123123

acts-as-taggable-on

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question