2009-09-09 73 views

回答

6

添加「!」最後:

User.find_by_name "a" => return nil 

User.find_by_name! "a" => raise error 
相關問題