Example wanted, post with tags


I’m creating a simple website which should have one or more tags associated to one or more post, I would like to use some form of autocompletion to select the tags, how do I do this?

In my schema I have:

many_to_many :tags, MetaDb.Tag, join_through: “type_tags”

I did find one example but there was only information on the change sets, nothing about the controller, or template.

Thank you in advance,

In your controller you would load the possible tags from the database. Then somewhere in your template you have those embedded, and then you’d likely use javascript to handle the actual autocompletion.