James Bond wrote:
> 
>> Catalogue
>>   has_many :catalogue_items, :order => "position"
> 
> Thanks, but if I want sot like:
> 
> :order => "catalogues.name!='#...@name}', catalogues.name, products.name"
> 
> Where @name is serarch word.

That doesn't make sense though - you're trying to shove a search 
condition into the order option, and you've got all sorts of syntax 
errors going on.

Can you explain, in english as opposed to code, what it is that you 
ultimately want to do?  Neither of the things you've asked for have 
really made sense so i'm just guessing.  You're asking how to do a 
particular bit of code but i don't think the code you're looking for is 
actually the code you need to do the job, if you know what i mean.


-- 
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