Sunday, June 19, 2011

Re: [Rails] validates_numercality_of with allow_nil.

On 19 June 2011 14:26, Michael Pavling <pavling@gmail.com> wrote:
>
> What about:
>
> validates_numericality_of :square_meters_public_land,
> :greater_than_or_equal_to => 0, :allow_nil => true
> validates_numericality_of :barrier_meters, :greater_than_or_equal_to
> => 0, :allow_nil => true

It's just the same.

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate