Updated error messages to include dot as valid character
This commit is contained in:
parent
926f3013c2
commit
a3b6a3ed35
|
@ -26,7 +26,7 @@ class Project < ActiveRecord::Base
|
||||||
:uniqueness => true,
|
:uniqueness => true,
|
||||||
:presence => true,
|
:presence => true,
|
||||||
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
||||||
:message => "only letters, digits & '_' '-' allowed" },
|
:message => "only letters, digits & '_' '-' '.' allowed" },
|
||||||
:length => { :within => 0..255 }
|
:length => { :within => 0..255 }
|
||||||
|
|
||||||
validates :description,
|
validates :description,
|
||||||
|
@ -36,7 +36,7 @@ class Project < ActiveRecord::Base
|
||||||
:presence => true,
|
:presence => true,
|
||||||
:uniqueness => true,
|
:uniqueness => true,
|
||||||
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
||||||
:message => "only letters, digits & '_' '-' allowed" },
|
:message => "only letters, digits & '_' '-' '.' allowed" },
|
||||||
:length => { :within => 3..255 }
|
:length => { :within => 3..255 }
|
||||||
|
|
||||||
validates :owner,
|
validates :owner,
|
||||||
|
|
Loading…
Reference in a new issue