find_by will return only one row, while find_all_by (not find_by_all) returns all of found records.
But now find_all_by is deprecated and you need to use where. Example:
Ruby
Example.find_all_by_published(true)
# should be replaced with Example.where(published:true)
find_by
will return only one row, whilefind_all_by
(notfind_by_all
) returns all of found records.But now
find_all_by
is deprecated and you need to usewhere
. Example: