Emilio Tagua
2008-Mar-28 21:19 UTC
Patch review request: validates_numericality_of does not replace option in custom message like in default message
Hi, Today someone created a ticket for a defect in validates_numericality_of, at first sight i thought it wasn''t a defect but an enhancement. But then i found that validates_length_of accepts :message => "should be greater than %d", but validates_numericality_of doesn''t (The output for v_n_o is: "should be greater than %d" instead of "should be greater than 4"). I think this is inconsistent and therefore a bug. I did a patch to solve ticket, you can view both here: http://dev.rubyonrails.org/ticket/11456 Feedback/+1 always welcome Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- [shoulda-matchers gem] validate_numericality_of_matcher strange behaviour
- validates_numericality_of and greater_than* doesn't appear to be working
- bug? saving (valid) updated object results in validation error
- validates_numericality_of, :allow_nil => true?
- Either/Or Validation