Displaying 1 result from an estimated 1 matches for "event_type_nam".
Did you mean:
event_type_names
2008 Dec 06
1
find with add of an atttributes
I have wrote this:
EventDate.find(:all,
:include => [:container,{:event =>
[:photo,:event_type_names]},{:place=>:location}],
:joins =>" RIGHT JOIN (SELECT
event_dates.id,date_add(event_dates.date, INTERVAL i DAY ) AS date
FROM (select 0 as i union all select 0 union all select 1
union all select 2) as integers CROSS JOIN event_dates
WHERE i<=...