Validations and create_before

2008-05-08 Thread Farrel
What's the suggested way to specify a 'validates_presence_of :attr' validation where 'attr' is set in the before_create block? save returns false and says that 'attr' is not set save! works, no exceptions thrown, but I would prefer to use save. Farrel

Re: Validations and create_before

2008-05-08 Thread Farrel
On May 8, 11:33 am, Farrel [EMAIL PROTECTED] wrote: What's the suggested way to specify a 'validates_presence_of :attr' validation where 'attr' is set in the before_create block? save returns false and says that 'attr' is not set save! works, no exceptions thrown, but I would prefer to use

Re: Validations and create_before

2008-05-08 Thread Jeremy Evans
On May 8, 5:03 am, Farrel [EMAIL PROTECTED] wrote: On May 8, 11:33 am, Farrel [EMAIL PROTECTED] wrote: What's the suggested way to specify a 'validates_presence_of :attr' validation where 'attr' is set in the before_create block? save returns false and says that 'attr' is not set save!