I've got the following ActiveRecord relationships established:

Institutions has_and_belongs_to_many Diplomas, and
Diplomas has_and_belongs_to_many Institutions

(And have the appropriate diplomas_institutions table in the db.)

On a page displaying one Institution, I have an AS form for Diplomas,
rendered as a component. It gets the constraint, :constraints =>
{ :institutions => @institution.id }.

How would you do the AS config in the Diplomas controller so that when
this component was rendered, one could see a list of Diplomas
associated with the Institution, and 1) associate an existing Diploma
record with the Institution, 2) create a new Diploma record and
associate it with the Institution, and 3) remove an association of a
Diploma with an Institution?

I won't burden you with the gatrillion ways I've tried this, but
suffice it to say that I've tried most every possible combination
except the correct one, naturally.

Help for a newbie?

Many thanks,

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to