Forum: Ruby on Rails ActiveRecord find and count uses sql commands

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
525128e48ca2b4c7fb6176ea166fccfd?d=identicon&s=25 Eric G. (gotskill10)
on 2006-12-22 02:06
Im a little confused on this. Does ActiveRecord use the select * and
select count(*) for the find() and count() calls. I was told that
ActiveRecord doesn't use sql by some people. -Aryk
8da92d4ed91aa12535f6d870fa76b25e?d=identicon&s=25 Aaron (Guest)
on 2006-12-22 09:08
(Received via mailing list)
Yes ActiveRecord does use SQL.  Try running this from the command line:

tail -f log/development.log

Then browse around your app and watch the SQL fly.

Aaron

On Dec 21, 6:06 pm, Aryk Grosz <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.