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
Post a Comment