ActiveRecord Query Interface
Back to Web-Dev
#find
gets element by id
#count
with no parameters counts number of records, with parameter
:some_attribute
counts number of records with attribute present