I think I’m trying to get the PHP equivalent of print_r() (print human-readable); at present the raw output is:
ActiveRecord::Relation:0x10355d1c0
What should I do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I generally first try
.inspect, if that doesn’t give me what I want, I’ll switch to.to_yaml.