### Install simple_csv_reader Gem Source: https://github.com/aki77/simple_csv_reader/blob/main/README.md Instructions for installing the simple_csv_reader gem using Bundler or directly via gem install. ```ruby gem 'simple_csv_reader' ``` ```shell $ bundle install ``` ```shell $ gem install simple_csv_reader ``` -------------------------------- ### Read CSV with Custom Headers Source: https://github.com/aki77/simple_csv_reader/blob/main/README.md Example of using SimpleCsvReader to read a CSV file with specified headers and process each row. ```ruby # csv_file content # # Name,Email Address # tester1,tester1@csv.test # tester2,tester2@csv.test HEADERS = { name: 'Name', email: 'Email Address', }.freeze def import SimpleCsvReader.read(csv_file.path, HEADERS) do |row, row_number:| User.create!(name: row[:name], email: row[:email]) end end ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.