From d59b3e26fc4b2ffe943b861c3562387905dcd53a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Mon, 20 Dec 2010 22:31:29 +0100 Subject: [PATCH] One forgotten error with validation --- app/models/photo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/photo.rb b/app/models/photo.rb index df596f6..5895cdf 100644 --- a/app/models/photo.rb +++ b/app/models/photo.rb @@ -5,7 +5,7 @@ class Photo < ActiveRecord::Base mount_uploader :file, FileUploader - validates :path, :presence => true, :uniqueness => true, :message => "Photo already exsists on disc" + validates :path, :presence => true, :uniqueness => true validates :title, :presence => true before_validation :set_title