ok fine, i just used in the rails code, now i got the same output. can u
give one clarification about that query
Loyalty.find_by_sql("SELECT COUNT(id) as recordcount FROM
loyalties")*.first.recordcount, * the recordcount is the count.
*
*
here what is this* first.recordcount*
Thank you
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/dFmE-twrCTkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.