<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mTakata</author_name>
  <author_url>https://blog.hatena.ne.jp/mTakata/</author_url>
  <blog_title>Sun~sun~Flower's</blog_title>
  <blog_url>https://www.sunsunflowers.com/</blog_url>
  <categories>
    <anon>IT・プログラミング</anon>
  </categories>
  <description>こんにちは。 当ページにアクセスしてくださり、ありがとうございます。 この記事は、プログラミング言語「Ruby」のフレームワーク「Rails」についての記事になります。 問題.1 モデルについての問題です。 例えばPictweetで、Tweet.find(1)を実行するとidが1番のつぶやきを取得することができます。 この時、Tweetクラスの中にfindメソッドを定義していないにも関わらず、findというメソッドを使用できる理由を述べてください。 模範回答 ターミナル上で、 ```ターミナル$ rails g model tweet ``` 上記のコマンドを実行するとTweetクラスが作成さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sunsunflowers.com%2Fentry%2Fit%2Frails-model-and-association&quot; title=&quot;【Railsアプリケーション】モデルの仕組みとアソシエーションについて - Sun~sun~Flower&amp;#39;s&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mTakata/20200428/20200428221502.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-30 10:00:00</published>
  <title>【Railsアプリケーション】モデルの仕組みとアソシエーションについて</title>
  <type>rich</type>
  <url>https://www.sunsunflowers.com/entry/it/rails-model-and-association</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
