FindOrCreate finds the first record referenced by conditions passed into it. If the record does not exist it creates it.
User.find_or_create(:name => "Matt")
Copyright (c) 2008 Matt Williams, released under the MIT license