Does Rails find_or_create_by() also update a records attributes if the record is found. If not, is there a simple way to find_or_create a record, and if the record already exists; to update the records attributes
Does Rails find_or_create_by() also update a records attributes if the record is found. If
Share
Sounds like you want something that does a
create_or_update_by,which could be these two steps: