<%=
  CSV.generate :col_sep => ";", :force_quotes => true do |csv|
    csv << %w(name ipaddress operating_system manufacturer model site physical_rack serial_number
              mainteneur contract_type delivered_on maintained_until).map{|l| t(l)}
    @machines.each do |m|
      csv << [ m.name, m.ipaddress, @operating_systems[m.operating_system_id], m.manufacturer,
               m.model, m.physical_rack.try(:site), m.physical_rack.try(:name), m.serial_number,
               m.mainteneur, m.contract_type, m.delivered_on, m.maintained_until ]
    end
  end.html_safe
%>

<%=
  CSV.generate :force_quotes => true do |csv|
    csv << %w(name ipaddress operating_system manufacturer model site physical_rack serial_number
              mainteneur contract_type delivered_on maintained_until).map{|l| t(l)}
    @machines.each do |m|
      csv << [ m.name, m.ipaddress, @operating_systems[m.operating_system_id], m.manufacturer,
               m.model, m.physical_rack.try(:site), m.physical_rack.try(:name), m.serial_number,
               m.mainteneur, m.contract_type, m.delivered_on, m.maintained_until ]
    end
  end.html_safe
%>

Use comas instead of semi-colons as CSV separator
Use comas instead of semi-colons as CSV separator
