Validate the date format
This commit is contained in:
parent
77d9a0235a
commit
6b377a577e
6 changed files with 65 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
class Workout < ActiveRecord::Base
|
||||
validates :date, :presence => true
|
||||
validates_date :date
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue