<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ChonMeng-WONG</author_name>
  <author_url>https://blog.hatena.ne.jp/ChonMeng-WONG/</author_url>
  <blog_title>プログラミング学習記録ブログ</blog_title>
  <blog_url>https://chonmeng-wong.hateblo.jp/</blog_url>
  <categories>
    <anon>学習メモ</anon>
  </categories>
  <description>showとupdateなど、よく使われる.findなんですが、最近.whereというメソッドの存在を知りました。 使ってみたら、.whereのほうが配列としてreturnしてくるが、.findならそうreturnしてこないらしい。。。。これで、複数のデータなら.where、個別なら.findでいいのかな？と思い、ネットで調べてみたら、違いはありました。。(今までの憶測はなんだろう＝) where returns an ActiveRecord::Relation (not an array, even though it behaves much like one), which is a c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchonmeng-wong.hateblo.jp%2Fentry%2F2014%2F08%2F19%2F193504&quot; title=&quot;Railsにおける、findとwhereの違い - プログラミング学習記録ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-08-19 19:35:04</published>
  <title>Railsにおける、findとwhereの違い</title>
  <type>rich</type>
  <url>https://chonmeng-wong.hateblo.jp/entry/2014/08/19/193504</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
