I’m currently looking through a system trying to figure out how things work together – I know a couple basic ways to examine objects (I’m in the console), such as Object.methods, but I was wondering if there were ways to find, say, it’s attributes, and it’s relationships with other models (for example, has_many relationships) and the like.
I’m currently looking through a system trying to figure out how things work together
Share
The Pry gem is awesome for this sort of thing.
Dig this Railscasts episode.