Is it possible to create a model object from another model?
Say I have an Article model and a Term model that has a has_and_belongs_to_many relationship through a join table. (The terms are almost like tags, but have a definition column.)
I want the user to be able to add terms to the article when editing it (possibly using checkboxes), but I am also the user to be able to create a new term if he cannot find it in the list. How can this be done? I want the user to be able to create a term with a definition inside the article editing form. Is it possible?
source share