Questifer
Questifer

Reputation: 1133

Rails console not showing fields and values

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

Answers (1)

Alex Kozlov
Alex Kozlov

Reputation: 31

Try attributes method

User.first.attributes

Taken from this answer: https://stackoverflow.com/a/39632742

Upvotes: 2

Related Questions