class Contact < ActiveRecord::Base validates :content, presence: true validates :email, email: true, presence: true end