u can use :maximum => 5 in ur model instead of using dat in the form On Nov 16, 11:10 am, "Todd A. Jacobs" <tjacobs-sndr- [email protected]> wrote: > On Sun, Nov 15, 2009 at 09:17:01PM -0800, Rick wrote: > > Sure the code you've got matches what you've reported? > > Yup. I did some googling around, and other people have apparently had > problems validating the length of numbers with validates_length_of as > well. No one seems to have filed a bug report about it, though. > > I ended up replacing the validations with validates_format_of, and > that's working for now. I'll file a bug report in the next day or so, > since validates_length_of should either "just work," or be documented as > being only for strings. > > -- > "Oh, look: rocks!" > -- Doctor Who, "Destiny of the Daleks"
--~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

