List associations in a particular model or object

Hi,

Just a quick question

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

Many thanks

Richard

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

Richard

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