lib/scaffolding_extensions/model/datamapper.rb
# Add the associated object to the object's association
Add the associated object to the object's association
Add the associated object to the object ' s association
def scaffold_add_associated_object(association, object, associated_object)
    ap = object.send(association)
    ap << associated_object unless ap.include?(associated_object)
    object.save
  end
def scaffold_add_associated_object ( association , object , associated_object ) ap = object . send ( association ) ap << associated_object unless ap . include? ( associated_object ) object . save end
Add the associated object to the object's association
Add the associated object to the object ' s association
association
<not_specific>
object
<not_specific>
associated_object
<not_specific>