From a3b6a3ed3552cbbdc74971a1261c668d1365412f Mon Sep 17 00:00:00 2001 From: Jeremy Mack Date: Mon, 12 Dec 2011 13:32:35 -0500 Subject: [PATCH] Updated error messages to include dot as valid character --- app/models/project.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 85d5416b..d1eb2793 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -26,7 +26,7 @@ class Project < ActiveRecord::Base :uniqueness => true, :presence => true, :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, - :message => "only letters, digits & '_' '-' allowed" }, + :message => "only letters, digits & '_' '-' '.' allowed" }, :length => { :within => 0..255 } validates :description, @@ -36,7 +36,7 @@ class Project < ActiveRecord::Base :presence => true, :uniqueness => true, :format => { :with => /^[a-zA-Z0-9_\-\.]*$/, - :message => "only letters, digits & '_' '-' allowed" }, + :message => "only letters, digits & '_' '-' '.' allowed" }, :length => { :within => 3..255 } validates :owner,