On Sat, Jun 19, 2010 at 12:51 AM, Vikrant Chaudhary
<nasa42-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>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:
http://guides.rails.info/active_record_validations_callbacks.html#validates-presence-of
Good luck,
-Conrad
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.