Quoting CoolAJ86 <[email protected]>:
>
> This is what I'm trying to do:
>
> @contacts = Contact.find(:all, :conditions => [["jobs.name LIKE ?",
> 'Teacher%'], {:group_id => current_contact.group}], :include =>
> [:jobs, :photos])
>
> Obviously it's not working. Is this my only option?
> @contacts = Contact.find(:all, :conditions => ['jobs.name LIKE ? AND
> group_id = ?', 'Teacher%', current_contact.group], :include =>
> [:jobs, :photos])
:conditions =>
"jobs.name LIKE 'Teacher%' AND group_id = #{current_contact.group}"
HTH,
Jeffrey
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---