On Apr 13, 4:30 pm, Ian <[email protected]> wrote: > And this works. But it also breaks the chaining I can do with named > scopes. So if I try this: > > People.evaluation_score_over(80).enrolled.living.lives_in_state("WY").pagin > ate > > it fails. evaluation_score_over returns an array and the array doesn't > have a method "enrolled". > > Is there a way I can implement the kind of filtering I need to do and > still get all the chaining benefits of named scopes?
Fundamentally you need to be able to reduce it to a set of options to find - that's all named_scopes know how do deal with. Fred -- 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.

