allow a dot in the page name

master
Andrew Coleman 2009-04-01 23:29:24 -05:00
parent 7973ef65d9
commit 809351f08a
1 changed files with 1 additions and 1 deletions

View File

@ -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