{"image_url":null,"categories":["Ruby","Rails"],"width":"100%","blog_url":"https://koseki.hatenablog.com/","blog_title":"\u3053\u305b\u304d\u306e\u6280\u8853\u65e5\u8a18","type":"rich","provider_name":"Hatena Blog","version":"1.0","published":"2009-04-06 00:00:00","author_url":"https://blog.hatena.ne.jp/koseki2/","author_name":"koseki2","title":" Rails\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3002","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoseki.hatenablog.com%2Fentry%2F20090406%2Frailsvalidation\" title=\" Rails\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u3002 - \u3053\u305b\u304d\u306e\u6280\u8853\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>","url":"https://koseki.hatenablog.com/entry/20090406/railsvalidation","height":"190","description":"\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u968e\u5c64 ActiveRecord::Validations::ClassMethods \u306e\u4e00\u756a\u4e0a\u306b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u65b9\u6cd5\u306e\u968e\u5c64\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3042\u308b\u3002\u9ad8\u30ec\u30d9\u30eb\u306a\u9806\u306b\u3001 validates_presence_of :firstname \u307f\u305f\u3044\u306a\u3084\u3064\u3002model\u306e\u30af\u30e9\u30b9\u30ec\u30d9\u30eb\u3067\u547c\u3076\u3002 validates_each \u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u306e validate, validate_on_create, validate_on_update \u3092\u547c\u3076\u3002 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30e1\u30bd\u30c3\u30c9\u306e validate, validate_on_create, validate_on_update \u3092\u5b9a\u7fa9\u3059\u308b\u3002 \u305f\u3044\u3066\u3044\u306e\u30e2\u30c7\u30eb\u306f\u4e00\u2026","provider_url":"https://hatena.blog"}