diff options
-rw-r--r-- | app/models/forumthread.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/forumthread.rb b/app/models/forumthread.rb index fd8d3c1..fe551c3 100644 --- a/app/models/forumthread.rb +++ b/app/models/forumthread.rb @@ -11,6 +11,7 @@ class Forumthread < ActiveRecord::Base validates_presence_of :title, :author, :forum validates_presence_of :content + validates_length_of :title, in: 5..255 validates_length_of :content, in: 5..20000 accepts_nested_attributes_for :threadreplies |