{"height":"190","url":"https://ayaketan.hatenablog.com/entry/2013/01/09/145309","provider_url":"https://hatena.blog","published":"2013-01-09 14:53:09","blog_title":"ayaketan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\u65e5\u8a18","description":"\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210\u5f8c\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u65e2\u5b9a\u306e\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3057\u305f\u304b\u3063\u305f\u3002[\u74b0\u5883] Windows8 Ruby 1.9.3(p125) Ruby on Rails 3.2.9 \u30e6\u30fc\u30b6\u30fc\u306emodel\u3067\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u4f7f\u7528\u3059\u308b\u3002 \u30e6\u30fc\u30b6\u30fc\u306e\u65b0\u898f\u767b\u9332\u6642\u306b\u306e\u307f\u30b7\u30b9\u30c6\u30e0\u65e2\u5b9a\u306e\u30c7\u30fc\u30bf\u3092\u767b\u9332\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u300cafter_create\u300d\u3092\u4f7f\u7528\u3059\u308b\u3002\u30e6\u30fc\u30b6\u30fc\u306emodel\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002 class User < ActiveRecord::Base # callback after_create :insert_data #\u30e1\u30bd\u30c3\u30c9 private def insert_data # \u30c7\u30fc\u30bf\u767b\u9332\u51e6\u7406\u3092\u8a18\u8ff0 en\u2026","image_url":null,"author_name":"ayaketan","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2013%2F01%2F09%2F145309\" title=\"Ruby on Rails \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u4f7f\u3044\u65b9 - ayaketan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Ruby on Rails \u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u4f7f\u3044\u65b9","width":"100%","provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/ayaketan/","version":"1.0","categories":["Ruby"],"blog_url":"https://ayaketan.hatenablog.com/"}