Validation Inconsistancy #67

KevinColemanInc opened this Issue May 8, 2013 · 0 comments

1 participant


You give this as an example:

validates_presence_of :name
validates_format_of :email, :with => /\A[-a-z0-9_+.]+\@([-a-z0-9]+.)+[a-z0-9]{2,4}\z/i
validates_length_of :content, :maximum => 500

but then say you shouldn't use those and instead use
validates :name, :presence => true

@bbatsov bbatsov closed this in ce327c0 May 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment