I think I\'m trying to get the PHP equivalent of print_r() (print human-readable); at present the raw output is:
print_r()
ActiveRecord::Relation:0x10355d
You need to use debug(@var). It's exactly like "print_r".
debug(@var)