Harold wrote:
> The find's :select option is ignored when you combine it with
> the :include option.
> 
> On Apr 16, 8:58�pm, Scott Kulik <[email protected]>

thanks.  i removed the include and did my joins manually.  i guess 
that's probably the best way:

    find(:all,
         :select => 'item_types.name, items.id, items.name',
         :joins => 'join item_types on items.item_type_id = 
item_types.id',
         :conditions => ['item_types.name = ? OR item_types.name = ? OR 
item_types.name = ? OR item_types.name = ?', 'Material', 'Weapon', 
'Armor', 'Accessory'],
         :order => 'items.name')
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to