简单条件find_by(finds the first record matching some conditions),无order时等价于where().first,比较简单;复杂的where().take(retrieves a record without any implicit ordering) or where().first(finds the first record ordered by the primary key) or where().last(finds the last record ordered by the primary key).
具体参考 rails guides