I dont understand why you want to validate uniqueness only on create. 
Isnt it a problem if email is changed later to an address that already 
exists?

The :on parameter is not available for validates_uniqueness_of, probably 
because it doesnt make any sense.

If you really want to make the validation happen only on create you can 
do before_validation_on_create :check_duplication
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to