Sha256: 66959ee048118aa02636419d17a14ee36caa206c3ce746984f500160c1375356
Contents?: true
Size: 339 Bytes
Versions: 22
Compression:
Stored size: 339 Bytes
Contents
class Post < Edifice::FormModel attr_accessor :title attr_accessor :message attr_accessor :email # just check the email has an @ and a dot. Anything else is false economy validates :email, :presence => true, :format => {:with => /^.+@.+\..+$/} validates :title, :presence => true validates :message, :presence => true end
Version data entries
22 entries across 22 versions & 1 rubygems