D
Size: a a a
В
В
K
headers
:If set to :first_row or true, the initial row of the CSV file will be treated as a row of headers. If set to an Array, the contents will be used as the headers. If set to a String, the String is run through a call of CSV::parse_line() with the same :col_sep, :row_sep, and :quote_char as this instance to produce an Array of headers. This setting causes CSV#shift() to return rows as CSV::Row objects instead of Arrays and CSV#read() to return CSV::Table objects instead of an Array of Arrays.
D
HEADER_CSV = ['name','email','phone']
- это заголовки, вы же прочли документацию, row « HEADER_CSV
- это тут ненужно и вы пытаетесь те же заголовки передать в переменную, row « [HEADER_CSV['email'] = 'hello']
- это что? =) у вас в галовках нет данных =)В
S
SR
SR
В