Radhames Brito wrote in post #956940: > On Mon, Oct 25, 2010 at 11:52 AM, Marnen Laibow-Koser > <[email protected]>wrote: > >> Radhames Brito wrote in post #956904: >> > instead of named scopes use class methods >> > >> > http://www.railway.at/2010/03/09/named-scopes-are-dead/ >> >> That article applies only to Rails 3. The OP said he was using Rails >> 2.3. Therefore, your advice is irrelevant. >> >> > not irrelevant as he can use class methods anyway and is are more > flexible, > i posted the link with general info on scopes as you can see the author > praises scopes in rails 2 in the first part of the article and later > explains the good and bad about them along with some guide on how to use > class methods.
Yes. The class method tricks he's talking about only work with Arel, so they are irrelevant for a standard installation of Rails 2. Some of his complaints also seem a bit specious... Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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.

