<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>MongoDB</anon>
    <anon>Sinatra</anon>
  </categories>
  <description>sinatra+mongoidで、 http://mongoid.org/docs/installation/configuration.html にあるようにmongoid.ymlを作って Mongoid.load!(&quot;path/to/your/mongoid.yml&quot;) で読み込ませて、modelをnewした時点で&quot;db_name must be a string or symbol (TypeError)&quot;が起こる。 どうも誰も解決できていないのであきらめた。今まで通り Mongoid.configure do |conf| host = @@conf['mongo']['host'] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20111220%2F1324384928&quot; title=&quot;mongoidで&amp;quot;db_name must be a string or symbol (TypeError)&amp;quot; - 橋本詳解&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>2011-12-20 21:42:08</published>
  <title>mongoidで&quot;db_name must be a string or symbol (TypeError)&quot;</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20111220/1324384928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
