From 014f768e0cc0c17bb9e7fa9b251e32ddc33f86fa Mon Sep 17 00:00:00 2001 From: Gopesh Tulsyan Date: Sat, 5 Apr 2014 21:44:30 +0530 Subject: [PATCH] Validations for start and end date --- app/models/conference.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/conference.rb b/app/models/conference.rb index 46607508..c72a6049 100644 --- a/app/models/conference.rb +++ b/app/models/conference.rb @@ -51,7 +51,9 @@ class Conference < ActiveRecord::Base validates_presence_of :title, :short_title, - :social_tag + :social_tag, + :start_date, + :end_date validates_uniqueness_of :short_title validates_format_of :short_title, :with => /^[a-zA-Z0-9_-]*$/