Hi everybody, I am creating a site, where people can register, but i only want them to register, if they have a legit code. So let's say I give out the three codes "code1", "code2" and "code3". How can I make sure, that the user only gets registered, when the code gets vaildated?
Validate :registration_code => presence => true, ??? => ??? Do I have to write a custom method where I define all the possible codes or how would you do it? Thanks for your help! -- 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.

