List associations in a particular model or object


Just a quick question

is it possible to list the associations of a particular model or

Many thanks


Hey Richard - If you check out reflect_on_all_associations in the
rails API you’ll see a number of methods that may help you.

Matt Willhite

Thanks Matt,

That is exactly what I was looking for…

Many thanks


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs