DEV Community

loading...

Discussion on: Rails - find VS find_by

Collapse
danielltw profile image
Daniel Leong πŸ‡ΈπŸ‡¬

find_by is only good in situations where you are actually doing #where then #first on top of the where.

That is when you should use #find_by.