loading...

Discussion on: Export Records to CSV Files with Rails

Collapse
tomk32 profile image
Thomas R. Koll

Nitpicking if I may, a missing last or first name won't be noticed in HTML but it will be noticed in CSV when a human reads it directly or imported in Excel/LibreCalc.

def name
  [first_name, last_name].compact.join(' ')
end