0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

find, find_by, find_by!, whereメソッド の違い

Last updated at Posted at 2025-04-30
メソッド 検索キー 検索結果 エラー時の戻り値 その他
find ID 単数のみ 例外クラスのインスタンス
find_by 属性 単数のみ nil データがない場合も考えられる時使う
find_by! 属性 単数のみ 例外クラスのインスタンス
where 属性 単数複数 例外クラスのインスタンス
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?