Is validates_presence_of() deprecated in Rails 3?

Just wondering if validates_presence_of() has been deprecated in
favour of validates(:name, :presence => true) or we can prefer to use
any?
Asking so, since NetBeans 6.9 shows a deprecation warning, however I
can not find any such deprecation message in documentations/code of
Rails 3.0.0.beta4 and on web.

On Sat, Jun 19, 2010 at 12:51 AM, Vikrant C.
[email protected]wrote:

Just wondering if validates_presence_of() has been deprecated in
favour of validates(:name, :presence => true) or we can prefer to use
any?
Asking so, since NetBeans 6.9 shows a deprecation warning, however I
can not find any such deprecation message in documentations/code of
Rails 3.0.0.beta4 and on web.

Hi, you might want to check the documentation for Rails 3 API instead of
relying
on NetBeans to provide this up to date information. Here’s the current
docs
for
this validation method:

Good luck,

-Conrad