[Rails] how to handle error message when condition break both presence and numerical validation ?
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home