I have resolved this issue . I have bypass the validation by using attr_accessor
Here I set the value of category id and checked linked category id for the field is equal to category id
solved Ingnore Custom validation for hidden fields in rails 2.3.5 [closed]