{"title":"rails3.2\u3068mongodb","version":"1.0","author_name":"windows11","categories":["Rails3","MongoDB"],"type":"rich","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjimibendrix.hatenablog.jp%2Fentry%2F20130123%2F1358900464\" title=\"rails3.2\u3068mongodb - \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2013-01-23 09:21:04","height":"190","blog_url":"https://jimibendrix.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/windows11/","description":"\u74b0\u5883\u6574\u5099 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210 rails new mongotest -O O\u30aa\u30d7\u30b7\u30e7\u30f3\u3067ActiveRecord\u3092\u7701\u7565 Gemfile\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18 gem 'therubyracer' gem 'mongoid'bundle installmongoid\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210 rails g mongoid:configconfig/mongoid.yml\u304c\u4f5c\u6210\u3055\u308c\u308b \u30e2\u30c7\u30eb artists.rb class Artist include Mongoid::Document field :name, type:String end \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc artists_controller.rb cla\u2026","url":"https://jimibendrix.hatenablog.jp/entry/20130123/1358900464","blog_title":"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u30e1\u30e2","width":"100%"}