{"blog_url":"https://hasen.hatenablog.com/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhasen.hatenablog.com%2Fentry%2F2015%2F04%2F08%2F202057\" title=\"Ruby\u304b\u3089MongoDB\u306b\u63a5\u7d9a\u3057\u305f\u3089\uff0c`&lt;main&gt;&#39;: uninitialized constant Mongo::Connection (NameError)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff0egem\u306e\u30f4\u30a1\u30fc\u30b8\u30e7\u30f3\u3092\u4e0b\u3052\u305f\uff0e - hasen&#39;s tech life\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://hasen.hatenablog.com/entry/2015/04/08/202057","title":"Ruby\u304b\u3089MongoDB\u306b\u63a5\u7d9a\u3057\u305f\u3089\uff0c`<main>': uninitialized constant Mongo::Connection (NameError)\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff0egem\u306e\u30f4\u30a1\u30fc\u30b8\u30e7\u30f3\u3092\u4e0b\u3052\u305f\uff0e","provider_name":"Hatena Blog","image_url":null,"blog_title":"hasen's tech life","description":"\u300eWeb\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u6559\u79d1\u66f8\u300f\u3092\u8aad\u3093\u3067\u3044\u3066\uff0cRuby\u304b\u3089MongoDB\u3078\u306e\u63a5\u7d9a\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u306e\u3067\uff0cgem\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0b\u3052\u305f\uff0e $ ruby -v > ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] $ gem install mongo --no-ri --no-rdoc > Successfully installed mongo-2.0.2 $ vi test_mongo.rb ++ # encoding: utf-8 ++ require \"rubygems\" ++ require \"mongo\" ++ ++ # c\u2026","width":"100%","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/hasen-fus/","height":"190","version":"1.0","published":"2015-04-08 20:20:57","author_name":"hasen-fus","categories":["Ruby","MongoDB"]}