Rails newb syntax question
- by Veep
I'm in the console, looking at someone else's app. I come across the following:
>> p.location
=> [#<Tag id: 2, name: "projects">]
Why do I see this result, which seems to be the object name, and how do I access the actual attribute name, "projects"?
>> p.location.name
=> "Tag"
Thank you very much!