I have an Item has_and_belongs_to_many template: gender and a Gender template has_and_belongs_to_many : items, also a relationship table generos_itens (id_item, genero_id).
I'm trying to create a new relationship between item and gender in the view of items (show / 1), first I would search all the genres and then with that data would include this new relationship, but since I do not have one template for the generos_itens table and also do not have the controller I do not know how to insert this record, what is the best way to proceed?