rails validates presence of multiple fields code example
Example: ruby on rails validates presence of multiple fields
validates_presence_of :first_name, :last_name, :birthday, :sex, :home
validates_presence_of :first_name, :last_name, :birthday, :sex, :home