Find_or_create_by_name

If I have a table: (id, lastname, firstname), can I use
“find_or_create_by_name” if I have to search by first and last name?

On 11 Dec 2008, at 16:17, Gi Ga wrote:

If I have a table: (id, lastname, firstname), can I use
“find_or_create_by_name” if I have to search by first and last name?

no. find_or_create_by_foo requires foo to be an actual column (but you
can do find_or_create_by_foo_and_bar)

Fred