I have a form (Rails) which allows me to load a .csv file using the file_field. In the view:
file_field
<% form_for(:upcsv, :html => {:multipa
CSV.foreach(file_path, headers: true).count
Above will exclue header while counting rows
CSV.read(file_path).count