Project

General

Profile

validating dynamic variables

Added by Zdravko Balorda over 10 years ago

validates_length :alpha, :beta, :gamma

Is there a way to dynamically define above variables to serve validate_length properly?

validates_length ...

where ... would be a container for :alpha, :beta, :gamma
A newbee question. Hints are appreciated.

Regards, Zdravko