> It would appear to me that your immediate problem is the line of code I > pointed out above.
Yeah I got it now. Basically: if self.class.respond_to? will only respond to class methods of the class, not instance methods and since attr_accessor returns instance methods, that if will return false. So basically what I had to do was: elsif self.class.method_defined? :blog_filter_scoper And that worked above. And then within my categories controller: def blog_filter_scoper BlogPost.for_posts 1 end That will call the blogpost named scope and pass the argument 1 so now depending on which controller is invoked, we can pass different arguments to for_posts to determine which posts to display. The only thing I don't like now about this is that I am passing an integer 1. I'd rather do something like Category[:news].id - where rails will search the categories table with news value and then pull the id of that value which could be 1. I think that's better than hardcoding 1 right there. I guess that's the next thing I need to figure out. Thanks for all responses. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.