On 15 May 2009, at 10:24, Jim Burgess wrote:
> > Wow, that's very cool. > I changed the line to: > > validates_numericality_of :children, :if => Proc.new { |applicant| > true > if applicant.children !="" } you can even shorten that to validates_numericality_of :children, :if => Proc.new { |applicant| applicant.children !="" } Fred > > > and that does exactly what I want. > Thanks for your time and help, Fred. > > -- > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---