I am trying to do this inside a view template (pass 3 values,
facility.id, @inc_beg_date and @inc_end_date)...
<% for incident in IncidentReport.include facility.id @inc_beg_date
and the error I get is
script/../config/../app/views/reports/facilities/incident_report.rhtml:39: syntax error, unexpected tIVAR, expecting kDO_COND or ':' or '\n' or ';'
for incident in IncidentReport.include facility.id @inc_beg_date @inc_end_date ; _erbout.concat "\n"
script/../config/../app/views/reports/facilities/incident_report.rhtml:65: syntax error, unexpected kEND, expecting $end
and if I put commas in to separate the values, like this,
<% for incident in IncidentReport.include facility.id, @inc_beg_date, @inc_end_date %>
script/../config/../app/models/incident_report.rb:16: syntax error, unexpected $end, expecting kEND
and if I enclose in parens the errors are the same
How do I pass 3 values from within view code (because I can pass 1 value