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
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
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!