Man that page is ugly :)

I've added an entry for the case you found.  However I think it might
be an idea to start up a wiki page with some more useful information.

All the best...

On 5/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Right now if you have:
>
> class User < ActiveRecord::Base
>   has_many :purchases
> end
>
> ...and call:
>
> user.purchases_count
>
> You'll get a deprecation warning which points you to
> http://www.rubyonrails.org/deprecation. I know to use
> user.purchases.count instead and why, but it would be good to amend
> the page for other folks who end up there.
>
> Maybe something like:
>
> *association*_count
>   use model.association.count instead
>
> Best,
>
> -Matt
>
>
> >
>


-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to