Jason Fb wrote in post #1158388: > Jan, > > That is pretty strange-- but it looks like you're doing something > non-standard and you've gotten yourself into a pickle. > > I notice that the error message says there's no method 'where' on an > instance of an Article. Normally you call where on the class itself.
Good point > First of all, why is your class named "X" in your example (did you do > that just to share you code? It's a little confusing)? I did that just to share code > Secondly, can you show us the calling code please? > Finally, put a debugging statement inside of self.low_level and then > type "self" to understand the context (scope) of how it is called -- if > "self" inside the method is actually your Article class or (somehow) an > instance of an Article. Good idea > > -Jason -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/760a5679f77c1285cdb415d462e0c93d%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

