laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org
2008-Feb-16 01:10 UTC
validating that a user-agreement checkbox has been checked
Hi, I have a checkbox that a user must check before they register on my site. It is to accept the terms of use. My question is, what validation code do I need to add to my user model so that the record can''t be saved until the box is checked? Thanks, - Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Rick DeNatale
2008-Feb-16 01:18 UTC
Re: validating that a user-agreement checkbox has been checked
On Feb 15, 2008 8:10 PM, laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org <laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org> wrote:> > Hi, > > I have a checkbox that a user must check before they register on my > site. It is to accept the terms of use. My question is, what > validation code do I need to add to my user model so that the record > can''t be saved until the box is checked?validates_acceptance_of -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.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-/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 -~----------~----~----~----~------~----~------~--~---
Ryan Bigg (Radar)
2008-Feb-16 02:35 UTC
Re: validating that a user-agreement checkbox has been checked
Just thought that you''ve been asking a lot of questions on the mailing list lately and here''s a few things that might help you out: You''ll get a quicker reply from the people on irc.freenode.net #rubyonrails. Many people from the mailing list are in here. http://noobkit.com is a great lookup site if you don''t know what a method does. Then there''s old faithful http://google.com too. I did try sending this to your address but I got an instant error: This is an automatically generated Delivery Status Notification Delivery to the following recipient failed permanently: laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org Technical details of permanent failure: PERM_FAILURE: SMTP Error (state 13): 550 <laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org>: invalid address On Sat, Feb 16, 2008 at 11:40 AM, laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org < laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org> wrote:> > Hi, > > I have a checkbox that a user must check before they register on my > site. It is to accept the terms of use. My question is, what > validation code do I need to add to my user model so that the record > can''t be saved until the box is checked? > > Thanks, - Dave > > >-- Ryan Bigg http://www.frozenplague.net Feel free to add me to MSN and/or GTalk as this email. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
laredotornado-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org
2008-Feb-16 20:16 UTC
Re: validating that a user-agreement checkbox has been checked
Rick, Thanks. That was it. Ryan, Yeah, I''ve probably overstayed my welcome somewhat. This is such a great group but I should branch out. Is "irc.freenode.net #rubyonrails" a newsgroup? I tried visiting the URL and "irc.freenode.net" but got a server not found error. Incidentally I visit this through Google Groups. - Dave On Feb 15, 8:35 pm, "Ryan Bigg (Radar)" <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Just thought that you''ve been asking a lot of questions on the mailing list > lately and here''s a few things that might help you out: > > You''ll get a quicker reply from the people on irc.freenode.net #rubyonrails. > Many people from the mailing list are in here. > > http://noobkit.comis a great lookup site if you don''t know what a method > does. > > Then there''s old faithfulhttp://google.comtoo. > > I did try sending this to your address but I got an instant error: > > This is an automatically generated Delivery Status Notification > > Delivery to the following recipient failed permanently: > > laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org > > Technical details of permanent failure: > PERM_FAILURE: SMTP Error (state 13): 550 <laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org>: > invalid address > > On Sat, Feb 16, 2008 at 11:40 AM, laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org < > > laredotorn...-8iDLEspWrrZBDgjK7y7TUQ@public.gmane.org> wrote: > > > Hi, > > > I have a checkbox that a user must check before they register on my > > site. It is to accept the terms of use. My question is, what > > validation code do I need to add to my user model so that the record > > can''t be saved until the box is checked? > > > Thanks, - Dave > > -- > Ryan Bigghttp://www.frozenplague.net > Feel free to add me to MSN and/or GTalk as this email.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ryan Bigg (Radar)
2008-Feb-16 23:19 UTC
Re: validating that a user-agreement checkbox has been checked
It''s an IRC server, get an IRC client like mirc http://mirc.com and then type /server irc.freenode.net -j #rubyonrails into the bar at the bottom after entering all your details. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---