No, your not getting my question , actually i want presence and numeric validation on "Age" field. When i click submit without filling any value then i face error message is "is not number" ,but error message should be "is should be presence". How to set this message?
Hope you understood issue. On Wednesday, January 16, 2013 10:45:22 AM UTC+5:30, Fahim Patel wrote: > > Thanks for reply > Let me try this, then i will reply you updated . > > Fahim > > On Wednesday, January 16, 2013 10:34:42 AM UTC+5:30, Dheeraj Kumar wrote: >> >> 1. Why do you have two presence validators? >> 2. add allow_blank: true to the numerical validator. >> >> -- >> Dheeraj Kumar >> >> On Wednesday 16 January 2013 at 10:11 AM, Fahim Patel wrote: >> >> >> Hi all, >> >> I have one numeric field "age" and it have two validation presence and >> numerical true. >> When i click submit without filling any value then i face error message >> is "is not number" ,but error message should be "is should be presence". >> How to set this message? >> Both the condition are satisfying. >> >> Did i have to configure en.yml ? >> >> Thanks >> >> Fahim >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-talk/-/Bz2IOd8dFO8J. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Ur0U082IE4YJ. For more options, visit https://groups.google.com/groups/opt_out.

