On 19 June 2011 13:38, Michael Pavling <[email protected]> wrote: > On 19 June 2011 12:23, Mauro <[email protected]> wrote: >> In the model I have: >> >> validates :square_meters_public_land, :barrier_meters, :numericality >> => { :greater_than_or_equal_to => 0 }, :allow_nil => true >> > > Depending on your Rails version.... try:
I'm using rails 3.0.9, sorry but I don't undestand why I have to use the if clause. allow_nil => doens't work with validation_numericality_of? -- 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.

