From 2251f2166416e12d383af700d636524b32af9a6d Mon Sep 17 00:00:00 2001 From: nilsding Date: Tue, 16 Dec 2014 12:48:40 +0100 Subject: [PATCH] bio has now validation --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index 78c779ea..b89dddcd 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -29,6 +29,7 @@ class User < ActiveRecord::Base validates :screen_name, presence: true, format: { with: SCREEN_NAME_REGEX }, uniqueness: { case_sensitive: false } validates :display_name, length: { maximum: 50 } + validates :bio, length: { maximum: 200 } # validates :website, format: { with: WEBSITE_REGEX }