Hello,
Rails Noob here.
ok, I wrote a little query that is doing what it should be doing.
I run the debug() function on the returned results and I get this...
<%= debug(@total)%>
---
- !ruby/object:Association
attributes:
recordCount: "633"
My question is how can I display what ''recordCount'' is without
looping
through this data?
My second question is what am I looking at? Is this thing an object or a
hash? I am leaning towards an object, but this reminds me too much of
PHP and the print_r() function.
very confused,
Roy k
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---