Where is the closing quote for the line that starts with:
:full_note => "
If you have "nested" quotes inside interpolations, perhaps you need to use %{} instead of ""
Or, perhaps even better, don't try to be so clever and compact:
output.each {|o|
o.map! {|i|
full_note = [i.full_note.strip]
i.photos.each do |photo|
next if photo.caption.blank?
full_note << "[Photo #{photo_number_for(report.photo_numbers.hash, photo)}] #{photo.caption}"
end
{
:space_nickname => i.space.nickname,
:nickname => i.nickname,
:condition_number => i.condition,
:condition => report_config.slider_order[i.condition][1],
:full_note => full_note.join("\n").strip,
:description => i.description,
:trade => i.trade,
:flagged => !i.require_maintenance.blank?
}
}
}
output.reject(&:empty?)
-Rob