Validating: :message key seem to be unknown by rails 3

This commit is contained in:
Rémi Vanicat 2010-12-20 22:18:27 +01:00
parent ae9cea2bd3
commit af852142fb

View file

@ -3,8 +3,8 @@ class Album < ActiveRecord::Base
has_many :collection_albums
has_many :collections, :through => :collection_albums
validates :path, :presence => true, :uniqueness => true, :message => "Album already exsists on disc"
validates :title, :presence => true, :message => "can't be blank"
validates :path, :presence => true, :uniqueness => true #, :message => "Album already exsists on disc"
validates :title, :presence => true #, :message => "can't be blank"
before_validation :ensure_path, :set_title
after_create :create_folders