As Leonardo pointed out to me in an email, you can only call
"before_create" by method, not by validation symbol.


On Jun 18, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to