Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Validates needs hash slice. | José Valim | 2010-01-17 | 1 | -0/+2 |
| | |||||
* | Fix typos and add tests to ensure they will be caught the next time. | José Valim | 2010-01-11 | 1 | -1/+1 |
| | |||||
* | Fix typo by renaming :genre to :gender. | José Valim | 2010-01-09 | 1 | -1/+1 |
| | |||||
* | Allow validates to map some types to specific options. So now you can do: | José Valim | 2010-01-08 | 1 | -12/+32 |
| | | | | | | validates :email, :presence => true, :format => /@/ validates :genre, :inclusion => %w(m f) validates :password, :length => 6..20 | ||||
* | Allow :if, :unless, :on, :allow_nil and :allow_blank as shared options in ↵ | José Valim | 2010-01-07 | 1 | -6/+18 |
| | | | | validates. | ||||
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 1 | -0/+74 |
attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> |