Just a comment (no solution), why are you only validating on create? Do you not care if it is not valid if the user already has a record? I would remove the 'on =>' . I see nothing that looks technically wrong with your code. Have you tried using a debugger on it?
On Thu, Jun 18, 2009 at 11:05 AM, Jed <[email protected]> wrote: > > I am using the console to add records in the Active Record Basics lab > and experiencing an odd error that I cant seem to debug. > > if I comment out my validator, the class is OK at runtime, but with > the validation method it breaks and I get a "nil is not a symbol" > error. Can anyone see why the console would be complaining? Thanks, > > follow to code: http://pastie.org/516420 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
