From c39eb1e9839664deb68b50b2a9db16770d42852c Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 22 Feb 2009 12:52:58 +0100 Subject: another round of view updates --- app/models/node.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/models/node.rb') diff --git a/app/models/node.rb b/app/models/node.rb index 170ca1c..a6e3867 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -10,6 +10,9 @@ class Node < ActiveRecord::Base # Callbacks after_create :initialize_empty_page + # Validations + validates_length_of :slug, :within => 3..40 + # Class methods # Returns a page for a given node. If no revision is supplied, it returns -- cgit v1.3