Merge pull request #60 from gopesht/fix_conference_create_without_start_end_date
Validations for start and end date
This commit is contained in:
commit
3628253624
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ class Conference < ActiveRecord::Base
|
||||||
|
|
||||||
validates_presence_of :title,
|
validates_presence_of :title,
|
||||||
:short_title,
|
:short_title,
|
||||||
:social_tag
|
:social_tag,
|
||||||
|
:start_date,
|
||||||
|
:end_date
|
||||||
validates_uniqueness_of :short_title
|
validates_uniqueness_of :short_title
|
||||||
validates_format_of :short_title, :with => /^[a-zA-Z0-9_-]*$/
|
validates_format_of :short_title, :with => /^[a-zA-Z0-9_-]*$/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue