public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Reserve paths starting with an underscore for later use.
Tim Morgan (author)
Sun Aug 17 19:50:19 -0700 2008
commit  a8528c95224e2278ed40277f1de52c8e381130be
tree    e76dc1f90bc48b4634de84665b84887851a399f2
parent  c4fb08d8cb3a4820dd57af438f906c061078817d
...
28
29
30
31
 
32
33
34
...
28
29
30
 
31
32
33
34
0
@@ -28,7 +28,7 @@ class Page < ActiveRecord::Base
0
   validates_presence_of :slug, :title, :body
0
   validates_uniqueness_of :path
0
   validates_exclusion_of :slug, :in => %w(admin edit new)
0
-  validates_format_of :slug, :with => /^[a-z_]+$/
0
+  validates_format_of :slug, :with => /^[a-z][a-z_]*$/
0
   
0
   before_save :update_path
0
   

Comments