{"image_url":null,"blog_url":"https://iriya-0624.hatenadiary.org/","published":"2013-05-01 23:42:14","width":"100%","title":"ActiveRecord\u3092Rails\u4ee5\u5916\u304b\u3089\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Firiya-0624.hatenadiary.org%2Fentry%2F20130501%2F1367419334\" title=\"ActiveRecord\u3092Rails\u4ee5\u5916\u304b\u3089\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u622f\u8a00\u30e1\u30a4\u30c6\u30eb\" 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","height":"190","url":"https://iriya-0624.hatenadiary.org/entry/20130501/1367419334","provider_name":"Hatena Blog","type":"rich","blog_title":"\u622f\u8a00\u30e1\u30a4\u30c6\u30eb","author_url":"https://blog.hatena.ne.jp/iriya_0624/","categories":["Ruby on Rails"],"description":"\u3084\u308a\u305f\u3044\u3053\u3068 ActiveRecord\u3092Rails\u4ee5\u5916\u306e\u666e\u901a\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u304b\u304b\u3089\u4f7f\u3044\u305f\u3044\u3002 \u65b9\u6cd5 \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u5185\u3067Rails\u306e\u8a2d\u5b9a\u7cfb\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3002 #coding: utf-8 require 'active_record' require '/railsdir/config/boot' require '/railsdir/config/environment' config = YAML.load_file(\"/railsdir/config/database.yml\") ActiveRecord::Base.establish_connection(config[\"deve\u2026","version":"1.0","author_name":"iriya_0624"}