Unless I am severely mistaken, you can't use :unless as a condition in
the validation anyway. It would need to be :if => some_condition,
where the some_condition method would return true/false.

On Aug 17, 1:22 pm, Pål Bergström <rails-mailing-l...@andreas-s.net>
wrote:
> Is this right?
>
> validates_uniqueness_of :email, :message => "Email taken", :unless =>
> :email == 'i...@mysite.com'
> --
> Posted viahttp://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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to