<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuronekopunk</author_name>
  <author_url>https://blog.hatena.ne.jp/kuronekopunk/</author_url>
  <blog_title>ノンカフェインであなたにやさしい</blog_title>
  <blog_url>https://akinobu.net/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>ransackで以下の様なOR検索をしたくなったので調べてみました。 # (a AND b) OR c SELECT `tables`.* FROM `tables` WHERE (((`tables`.`hoge1` = 1 AND `tables`.`hoge2` IS NOT NULL) OR `tables`.`hoge1` = 2)) OR検索の記事で見つけたのが以下 ransack という検索用の gem について - willnet.in コチラを参考にransackの検索条件を作成 { g: { '0' =&gt; { m: 'or', g: { '0' =&gt; { hoge1_eq:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2014%2F10%2F16%2F104731&quot; title=&quot;ransackでのOR検索について[Rails gem] - ノンカフェインであなたにやさしい&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-10-16 10:47:31</published>
  <title>ransackでのOR検索について[Rails gem]</title>
  <type>rich</type>
  <url>https://akinobu.net/entry/2014/10/16/104731</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
