Rails 3.0âs ActiveModel: How To Give Ruby Classes Some ActiveRecord Magic ãèªãã§ãMerbãããããã®Yehuda Katz(ãªãã¦èªããã ã)ãRailsã®æ©è½ã®ã¢ã¸ã¥ã¼ã«åçãªãã¨ããã¦ããããããã§ããã®ä¸ã¤ã«ActiveModelãããã ActiveModelã¨ã¯ Railsã§ã¯ãªããé常ã®Rubyã®ã¯ã©ã¹ã«ActiveModelçãªæ¯ãèããããããã¨ãåºæ¥ãã©ã¤ãã©ãªãä¾ãã°ä¸è¨ã®ããã«ãActiveRecordãç¶æ¿ãã¦ããªãã¯ã©ã¹ã«validationã®æ©è½ããã£ã¤ãããã¨ãåºæ¥ãã require 'active_model' class Person include ActiveModel::Validations validates_presence_of :first_name, :las
{{#tags}}- {{label}}
{{/tags}}