{"published":"2015-09-15 14:48:05","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fportaltan.hatenablog.com%2Fentry%2F2015%2F09%2F15%2F144805\" title=\"Rails\u306e\u30e2\u30c7\u30eb\u5074\u3067\u306evalidation - \u8133\u6c41portal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Rails\u306e\u30e2\u30c7\u30eb\u30d5\u30a1\u30a4\u30eb\u3067\u306evalidation\u306e\u65b9\u6cd5\u3067\u3059\u3002 validate\u306e\u5bfe\u8c61\u3092\u6307\u5b9a validate\u3092\u884c\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u3092validates\u3092\u4f7f\u3063\u3066\u5ba3\u8a00\u3059\u308b class TestValidates < ActiveRecord::Base validates :param1 validates :param2 validates :param3 \u30fb \u30fb \u30fb end validate\u306e\u6761\u4ef6\u306e\u8a2d\u5b9a \u5b58\u5728\u30c1\u30a7\u30c3\u30af class TestValidates < ActiveRecord::Base validates :param1, presence: true \u30fb \u30fb \u30fb end \u691c\u8a3c\u3092\u30b9\u30ad\u30c3\u2026","title":"Rails\u306e\u30e2\u30c7\u30eb\u5074\u3067\u306evalidation","categories":["ruby","Rails"],"height":"190","url":"https://portaltan.hatenablog.com/entry/2015/09/15/144805","version":"1.0","blog_title":"\u8133\u6c41portal","width":"100%","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/portaltan/","author_name":"portaltan","blog_url":"https://portaltan.hatenablog.com/","provider_url":"https://hatena.blog","type":"rich","image_url":null}