{"image_url":null,"author_url":"https://blog.hatena.ne.jp/woshidan/","description":"\u305f\u307e\u305f\u307e\u4ed5\u4e8b\u3067\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u3001ActiveRecord::Base\u306ecreate\u3068save\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8abf\u3079\u307e\u3057\u305f\u3002 \u307e\u3068\u3081 save(!)\u30e1\u30bd\u30c3\u30c9\u306fcreate(!)\u30e1\u30bd\u30c3\u30c9\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b create(!)\u30e1\u30bd\u30c3\u30c9\u306fnew\u30e1\u30bd\u30c3\u30c9\u3068save(!)\u30e1\u30bd\u30c3\u30c9\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9 save(!)\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30ec\u30b3\u30fc\u30c9\u306e\u4fdd\u5b58\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u3001create\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u5c5e\u6027\u304c\u4ee3\u5165\u3055\u308c\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u8fd4\u308a\u3001create!\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b save(!)\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3092\u8ffd\u3063\u3066\u3044\u304f\u3068\u3001new_record?\u30e1\u30bd\u30c3\u30c9\u306e\u8fd4\u308a\u5024\u306b\u3088\u3063\u3066\u3001INSERT\u6587\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3068UPDATE\u6587\u2026","width":"100%","author_name":"woshidan","published":"2015-09-29 22:47:50","blog_url":"https://woshidan.hatenablog.com/","url":"https://woshidan.hatenablog.com/entry/2015/09/29/224750","height":"190","title":"ActiveRecord::Base\u306ecreate\u3068save\u306e\u9055\u3044","categories":["Rails","ActiveRecord"],"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenablog.com%2Fentry%2F2015%2F09%2F29%2F224750\" title=\"ActiveRecord::Base\u306ecreate\u3068save\u306e\u9055\u3044 - woshidan&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","blog_title":"woshidan's blog"}