{"provider_url":"https://hatena.blog","url":"https://miyohide.hatenablog.com/entry/20090322/1237706599","blog_url":"https://miyohide.hatenablog.com/","blog_title":"miyohide's blog","author_name":"miyohide","author_url":"https://blog.hatena.ne.jp/miyohide/","provider_name":"Hatena Blog","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiyohide.hatenablog.com%2Fentry%2F20090322%2F1237706599\" title=\"\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b - miyohide&#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>","title":"\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u65e5\u672c\u8a9e\u5316\u3059\u308b","categories":["Ruby"],"version":"1.0","description":"rails\u306f\u3088\u304f\u3042\u308b\u5165\u529b\u5024\u30c1\u30a7\u30c3\u30af\u3092\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002ActiveRecord\u306b\u3042\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3002\u4f8b\u3048\u3070\u3001\u7a7a\u3067\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u306bvalidates_presence_of\u3063\u3066\u3082\u306e\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\uff0c class Buin < ActiveRecord::Base validates_presence_of :syain_id, :name, :message end \u3063\u3066\u30e2\u30c7\u30eb\u306b\u66f8\u304f\u3060\u3051\u3067\uff0csyain_id\u3068name\u3068message\u306b\u5bfe\u3057\u3066\u7a7a\u3067\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u3069\u308c\u304b\u3072\u3068\u3064\u3067\u3082\u7a7a\u3060\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308a\uff0cerb\u306b\u3042\u308b \u30bf\u30b0\u306b\u3066\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u2026","published":"2009-03-22 16:23:19","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/m/miyohide/20090322/20090322161903.png","width":"100%"}