ActiveModelã使ãã¨DBã«å¤ãä¿åããªãã§ãform_forã§ä½¿ç¨ããããããªãã¼ã·ã§ã³ãã§ããã¢ãã«ãªãã¸ã§ã¯ããä½æãããã¨ãã§ãã¾ãã app/models/contact.rb class Contact include ActiveModel::Conversion include ActiveModel::Validations extend ActiveModel::Naming extend ActiveModel::Translation attr_accessor :name attr_accessor :email attr_accessor :subject attr_accessor :message validates :name, :presence => true validates :email, :presence => true, :con
{{#tags}}- {{label}}
{{/tags}}