views:

20

answers:

1

so I want to do something like this:

, :order => "(products.name = 'Some Product' or products.name) desc", :order=>'distance'

has anyone done this before? I realize that I cant do it the way I have written, but hope it explains the order I want the orders to happen.

+1  A: 

Yes, you can.

:order => "column1 ASC, column2 DESC"
j.
I did this:order => "(products.name = 'Some Product' or products.name) desc, distance"very similar to what you suggested
jtmkrueger