View contents of ActiveRecord::Relation Object

I have produced an AR query which has returned an object of the above type. The object has the name of #<Review id: 26>

I am learning how to do advanced join queries and I would like to know if I have produced the desired object. It is a pain in the neck to have to assign the object to a variable and then slowly figure out how to iterate over it's contents using the data you hope is contained within.

Thank you.


Probably you are looking for variable_name.to_json.

Need Your Help

Create dash node dynamically on XPAGES

xpages xpages-ssjs xpages-extlib

I recently installed the Extension Library containing objects responsive In particular I was using the Dashboard component. I was trying to figure out how to dynamically create DashNode with