Thisissomethingwe’reusingonGitHubthatIreallywishIstartedusingsooner.Forlackofabettername,it’scalledtry().Itworkslikethis:defremove_email(email)emails.find_by_email(email).try(:destroy)endAnotherexample:file_type=file_types.detect{|key,|name.include...
查看全文