Re: [Rails] how to handle error message when condition break both presence and numerical validation ?
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 KumarOn 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 rubyonra...@googlegroups.com .
To unsubscribe from this group, send email to rubyonrails-ta...@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 .
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/-/jsnY7wtEPZUJ.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home