diff --git a/app/models/page.rb b/app/models/page.rb index d0652fa..b72a9f1 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -1,5 +1,5 @@ class Page < ActiveRecord::Base - validates_format_of :name, :with => /^[\w ]+$/ + validates_format_of :name, :with => /^[\w\. ]+$/ validates_uniqueness_of :name has_many :comments, :order => 'created_at ASC', :dependent => :destroy