I am new to ROR. I have created a form with foru fields in ROR. Now its
working fine for all CRUD operations. But I want to validate data on
form for “validates_presence_of” validation. How to do this?
I tried it by putting line “validates_presence_of :description” . But
its not working. Its throws error like “undefined method `each’ for
Also what is “:description” in the “validates_presence_of :description”
? Is it a database column name or name of the field (textbox) on my form
that is responsible for holding value of description field?
Please help me.
Thanks in advaance.