On 28/05/2010, at 3:30 PM, Alexander Sviridov wrote:

> The problem is with ordinary named scopes:
> 
> post.rb:
>  CATEGORIES = [:ordinary, :silver, :golden, :brilliant]
> 
>  CATEGORIES.each {|c| named_scope(c, {:conditions => {:category => 
> category_number(c)}})}
>  named_scope :with_categories, :include => [:categories]
> 
> posts_controller:
>  def golden
>    @sticky_posts = 
> @clan.posts.published.with_categories.golden.by_bumped_at.sticky.not_trashed
> 
> The code above fails.
> Well, probably I should write script reproducing error...

A test app that reproduces the issue would be fantastic. In the meantime, are 
you able to send me (off-list, if you'd prefer) your model code?

Cheers

-- 
Pat

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" 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/thinking-sphinx?hl=en.

Reply via email to