Nevermind, I got it:
{:conditions => {:deleted_at => nil}}
Thank you for your help.
Regards,
Colin
On Feb 22, 10:21 pm, Colin <[email protected]> wrote:
> Thank you for the link.
> It fixed the original error but it is now throwing:
>
> undefined method `keys' for ["deleted_at IS NULL"]
>
> So would I be right in thinking that I can't use the ["deleted_at IS
> NULL"] syntax to define a condition?
>
> Regards,
>
> Colin
>
> On Feb 22, 8:50 pm, Aaron Brethorst <[email protected]> wrote:
>
>
>
> > Try declaring your sphinx_scopes after define_index.
>
> >http://brethorsting.com/blog/2010/02/solution-for-undefined-method-sp...
>
> > On Feb 22, 2010, at 12:46 PM, Colin wrote:
>
> > > Hi,
>
> > > I'm getting the above error when I try to declare a sphinx_scope.
> > > I've googled around but couldn't find a solution.
> > > The model in question can be found here:http://pastie.org/837509
>
> > > I've tried it in the syntax shown above and also a direct copy of the
> > > named_scope syntax.
>
> > > Any ideas?
>
> > > Regards,
>
> > > Colin
>
> > > --
> > > 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
> > > athttp://groups.google.com/group/thinking-sphinx?hl=en.
--
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.