My favorites | Sign in
Project Logo
                
Code license: MIT License
Labels: rails, activerecord
Feeds:
People details
Project owners:
  ottercat

FindOrCreate

FindOrCreate finds the first record referenced by conditions passed into it. If the record does not exist it creates it.

Example

User.find_or_create(:name => "Matt")

Copyright (c) 2008 Matt Williams, released under the MIT license









Hosted by Google Code