| ... | @@ -29,7 +29,7 @@ class Project < ActiveRecord::Base |
... | @@ -29,7 +29,7 @@ class Project < ActiveRecord::Base |
|
|
: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..16 }
|
|
:length => { :within => 3..255 }
|
|
|
|
|
|
|
|
validates :owner,
|
|
validates :owner,
|
|
|
:presence => true
|
|
:presence => true
|
| ... | |
... | |
| ... | | ... | |