> Can you explain, in english as opposed to code, what it is that you 
> ultimately want to do? 

Sorry.

Search "way" I use is: match(catalogues.name) against "xxx"

And "order by" is (catalogues.name, products.name)

But first where catalogues.name == "xxx"

Example

If catalogues.names are: "aaa xxx", "xxx", "rrr xxx" 
match(catalogues.name) against "xxx" will found them all and default 
:order => "catalogues.name" will sort them like this:

1 "aaa xxx"
2 "rrr xxx"
3 "xxx"

But if I use :order => "catalogues.name!='#...@name}', catalogues.name" 
order will be:

1 "xxx"
2 "aaa xxx"
3 "rrr xxx"
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to