I am trying to use method `validates_presence_of’ for validating my
input fields on form . I m using it in my action class as follows:-
But when I am running my application i m getting error like:-
undefined method `validates_presence_of’ for #<ProductsContr
What is problem here??
Also I want to validate the field on my form (quantity) for its value
less than 10. if value entared in quantity field in my form is less than
10 then it should check it & should give validation message on my view.
How to do this???