<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bambookun</author_name>
  <author_url>https://blog.hatena.ne.jp/bambookun/</author_url>
  <blog_title>yujiro's blog</blog_title>
  <blog_url>https://bamboo-yujiro.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby On Rails</anon>
    <anon>ActiveRecord</anon>
  </categories>
  <description>Rails で様々な条件で複合検索ができる画面を実装していて、フォームから受け取った値をそのままモデルに渡してコントローラは条件分岐なしにスッキリ実装したかった。 何の気なしに以下のようなコードを書いた。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbamboo-yujiro.hatenablog.com%2Fentry%2F2017%2F07%2F21%2F011138&quot; title=&quot;【Rails】 scope は 常に ActiveRecord_Relation を返す素晴らしいやつ - yujiro&amp;#39;s blog&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>2017-07-21 01:11:38</published>
  <title>【Rails】 scope は 常に ActiveRecord_Relation を返す素晴らしいやつ</title>
  <type>rich</type>
  <url>https://bamboo-yujiro.hatenablog.com/entry/2017/07/21/011138</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
