Hi, I have this model,
class EcOrder < ActiveRecord::Base
and what I want to do is construct a validation rule that says an
order is not valid unless it has one or more line items. The error
message would read, “An order must have at least one item.” How would
I construct such a rule?
Thanks, - Dave