Reputation: 1133
When I open the rails console and print out my most recent object I am not able to see all of the fields and values. However, when I call the object.field_name it will display the value.
Does console cut off after a certain number of fields or am I experiencing some type of error?
Upvotes: 3
Views: 1634
Reputation: 31
Try attributes method
User.first.attributes
Taken from this answer: https://stackoverflow.com/a/39632742
Upvotes: 2