I use non modal attribute for companyinfo modal..
For that i have created like below
To validate that field i included the below code in to my companyinfo
validates_presence_of :std_code,:message => '*The std number is
it validates when i leave that field empty and shows the validation
but even after filling the field it shows me error....
what would be the problem....