[Rails] What kind of a construct is this?

Christian Metts mintxian.list at gmail.com
Tue Mar 1 00:19:40 GMT 2005


On Sun, 27 Feb 2005 23:30:21 -0500, Adam Fields
<rails23049809 at aquick.org> wrote:
> 
> I used @variable.inspect to print out the contents of the return from
> Object.find_all

You can also just try the debug helper. <%= debug @variable %> it'll
pretty print the object it into YAML and wrap it in a <pre> for you.

-- Xian


More information about the Rails mailing list