I was wondering is there a way to show the hash map array? I'm not sure if its the right terminology? But I wanted to see the columns from the database to see if I'm calling the correct hash keys.
For instance,
created on <%= link_to activity.trackable.list.name, activity.trackable.list %>
I'm not sure if I'm calling the correct names, if I'm getting undefined method? If I need to see if there's a key for .name
or .list
. I would like to see the array of activity.trackable
if there's such thing?
This code is coming from a tutorial in rails cast #407