validates_uniqueness_of
http://api.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html#M001896
On Sun, Jan 18, 2009 at 6:06 PM, Dave
<nectom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---