Philip Hallstrom wrote in post #996237:
> On May 2, 2011, at 10:10 AM, Jim Wharton wrote:
>
>> My search when setup like this works:
>>            "%#{search}%"],
>>            :include => :sponsors
>>          )
>>    else
>>      scoped
>>    end
>>  end
>>
>> If I attempt to add another include like:
>>
>> :include => {:sponsors, :cooperators}
>
> :include => [:sponsors, :cooperators]
>
> You want an array, not a hash.

Awesome, thank you.

I've gone with a "where" now as I've read that the "find" syntax is 
being deprecated.

Thanks again!
-Jim

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