i have 2 individual RAILS queries that both work fine on their own:
@charts = Chart.where(:patient_id => @emailpatient.id) @charts = Chart.where(:patient_id => @sharepatient.id) that i want to simply combine into a single 'OR' query. i tried:
@charts = Chart.where(:patient_id => @sharepatient.id OR :patient_id => @emailpatient.id) and
@charts = Chart.where("patient_id => @sharepatient.id OR patient_id => @emailpatient.id") and various other variations and cant get it to work. Where am i going astray?
@charts = Chart.where(:conditions => ["patient_id => ? OR patient_id => ?", @sharepatient.id, @emailpatient.id])