ããããã¨ãname ããã§ãã¯ãããããã ãã class Hoge < ActiceRecord::Base validates_presence_of :name, :message => "ãå ¥åããããã" end ã©ããã¦ãããªåãããªãã®ãæ°ã«ãªãã ããªãã¼ã·ã§ã³ã®ç»é²ã®æµã ã¾ãã¯ãActiceRecord::Base ã¯ãactice_record/base.rb ã®ä¸ module ActiveRecord ・・・ class Base ・・・ end ・・・ end ãã®Baseã¯ã©ã¹ããactice_record.rb ã®ä¸ã§æ¡å¼µããã¦ããã ActiceRecord::Base.class_eval do ・・・ include ActiveRecord::Validations ・・・ end ä¸ã®ãinclude ActiceRecord::Validati
{{#tags}}- {{label}}
{{/tags}}