{"version":"1.0","blog_title":"kenmituo\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenmituo.hatenadiary.org%2Fentry%2F20121108%2F1352361078\" title=\"Validates\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u3044 - kenmituo\u306e\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>","provider_name":"Hatena Blog","url":"https://kenmituo.hatenadiary.org/entry/20121108/1352361078","author_name":"kenmituo","image_url":null,"description":"\u306a\u305c\u304b\u51fa\u306a\u3044\u306e\u3067\u8ff7\u8d70\u4e2d controllers/hoge_controller.rb def create @hage = Hoge.new(params[:hoge]) if @hage.save flash[:notice]=\"\u65b0\u898f\u767b\u9332\u3055\u308c\u307e\u3057\u305f\" redirect_to :action=>:show, :id=>@hage else flash[:notice]=\"\u3060\u3081\" p \"errors\", @hage.errors render :action=>:new end endmodels/hoge.rb class Telecast < ActiveRecord::Base valid\u2026","title":"Validates\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u3044","categories":["Rails3"],"height":"190","blog_url":"https://kenmituo.hatenadiary.org/","published":"2012-11-08 16:51:18","width":"100%","author_url":"https://blog.hatena.ne.jp/kenmituo/","type":"rich","provider_url":"https://hatena.blog"}