Validating: :message key seem to be unknown by rails 3
This commit is contained in:
parent
ae9cea2bd3
commit
af852142fb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue