From c33813fedb5776442d6f8b04ef9f40486fd57eb3 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 25 Sep 2015 09:32:45 -0600 Subject: [PATCH] Actually fix regex --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 43a6f591..84a5fb17 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -57,7 +57,7 @@ class User < ActiveRecord::Base ############### validates :name, presence: true, uniqueness: {case_sensitive: false}, - format: {with: /\A([[:alpha:]]|w)+\z/}, + format: {with: /\A([[:alpha:]]|\w)+\z/ }, length: {in: 2..25} validates :page_pref, inclusion: {:in => (1..100)} validates_associated :user_page