Displaying 1 result from an estimated 1 matches for "productscontr".
2006 Mar 13
4
undefined method `validates_presence_of'' for #<ProductsContr
...n form . I m using it in my action class as follows:-
=======================
validates_presence_of(params[:product][:quantity])
======================
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????
Thanx....