0

I have a from, in which users will fill a number that shall be unique, otherwise rails will respond on an error : "has already been taken"

I am using validates_uniqueness_of at the model, so every thing is fine.

The problem is that when the error message "has already been taken" appears, I can no more submit the form, even if I cleared the text box, it seems that the form validator get stuck ..

I tried $("#class_room_form").validate().resetForm(); but, it didn't work, I still can't submit the form ..

Any idea ?

simo
  • 23,342
  • 38
  • 121
  • 218

0 Answers0