validates_uniqueness_of http://api.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html#M001896
On Sun, Jan 18, 2009 at 6:06 PM, Dave <nec...@gmail.com> wrote: > > Anyone point me in the direction of a tutorial to explain how I can > add a checker to a form field to see whether it is already used within > the database, i.e. check whether the username entered is unique > > > > -- Natalie Wood - "The only time a woman really succeeds in changing a man is when he is a baby." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---