I’m looking into write scaffold generators that will, amoung other
things, scaffold active record associations (eg. generate select
boxes for belongs_to where you can choose a parent object) for quicker
My question is: Is there anyway of finding out what associations
exist from examining the lodel classes themselves or indeed any other
way of finding out this information?
There’s nothing obvious from looking at the RDOCs and Im poised to
delve into the rails source but Id rather not because the association
code is pretty meaty.
Anyone got any clues?