Validations for start and end date
This commit is contained in:
parent
628211f0fc
commit
014f768e0c
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