A
A
Andrey2018-06-09 10:37:10
Ruby on Rails
Andrey, 2018-06-09 10:37:10

How to add line to xlsx file?

There are params

{full_name: "Mike", phone: "+7 (999) 999-9999"}", email: "[email protected]"}

There is a clients.xlsx file where these parameters need to be added.
Those. the client filled out the form, sent the data to the server, on the server they need to be added to the clients.xlsx table .
How to do it? possibly using standard Ruby tools, or libraries (like axlsx )

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AVKor, 2018-06-09
@andreychumak

rubyXL . There are enough code examples to get you started.
Although it’s generally not clear why bother with excel files when it’s better to just use CSV.

R
Roman Mirilaczvili, 2018-06-09
@2ord

The answer is in the axlsx documentation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question