Am 01.10.2009 um 00:00 schrieb Jochen Kaechelin:
>
> I'am not successfull in get this working:
>
> sphinx_scope(:latest_first) {
> { :order => 'created_at DESC' }
> }
>
this works:
sphinx_scope(:new_product) {
{:with => {:created_at => 1.day.ago..Time.now } }
}
The results in the console are fine when I do a:
Product.new_product
But how to handle it in a controller?
@products = Product.new_product
:conditions => { :active => 1 }, :page => params
[:page], :per_page => 21
does not work here.
Any hints?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---