DEV Community


Discussion on: Export Records to CSV Files with Rails

tomk32 profile image
Thomas R. Koll • Edited

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(' ')
Forem Open with the Forem app