I’m teaching Ruby on Rails right now, and I will save some values to a
plain text file.
That works, but I want to validate the variables. Normally I put the
validation in the model, but right now I want to check the variables
before saving into the text file. I tried to use:
but then I get the following error:
undefined method `validates_numericality_of’ for
What should I do?