I am using “validates_presence_of” for validating all fields of my
registration form. It is working fine and generating custom error
message as mentioned.
Also clearing all fields. How can restore those fields which are already
Problem is “validates_presence_of” clearing (blank) field if it fails,
instead of restoring fields which are already filled.