Re: validation help please

Dave Castellano
Fri, 01 Mar 2013 14:53:08 -0000

Ok,

Thank you.  I read Rails Guide on ActiveRecord Validations and
Callbacks, specifically Conditional Validation.

So,
validates :question, :presence   => true,  :if =>
"question_type.blank?"
placed inline in model should be the simplest way to do this. It does
not work however.  My lack of understanding seems to be related to how I
specify question_type in the condition?

As you can see i''m still on the bottom of the steep part of the
learning
curve.''

Thanks for the help