Rails: how to require at least one field not to be blank
Asked 2010-05-13T00:02:18.730
33
I know I can require a field by adding validates_presence_of :field to the model. However, how do I require at least one field to be mandatory, while not requiring any particular field?