DataMapperã®validationã¨ã©ã¼ã®ã¡ãã»ã¼ã¸ãå½éåããdm-validations-i18nã¨ããgemãä½ãã¾ããã komagata's dm-validations-i18n at master - GitHub require 'rubygems' require 'dm-core' require 'dm-migrations' require 'dm-validations' require 'dm-validations-i18n' DataMapper.setup(:default, 'sqlite::memory:') class Employee include DataMapper::Resource property :id, Serial property :name, String validates_presence_of :name end
{{#tags}}- {{label}}
{{/tags}}