Creating a model within a model in Rails -


is possible create model object within model form?

let's have article model , term model have has_and_belongs_to_many relationship through join table. (terms tags, have definition column.)

i want user able add terms article when editing (probably using check boxes), user able create new term if can't find in list. how can done? want user able create term definition inside article edit form. possible?

read "nested objects" or "nested attributes". might starting point: http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -