Hello everyone I have a problem in my app with the validation on
numericality. The field should be all numbers, and if an user types for
example "12345abc" into the field an error is raised and the data is not
saved. But in the field where the error was raised it now says "12345",
I want this field to be blank instead.
What is the best way to go about doing this?
Thanks in advance for any advice offered.
--
Posted via http://www.ruby-forum.com/.
--
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.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment