Save all user entries from html text built off a loop using ruby and sinatra
问题 I am creating a web page that displays a table. It also has four columns at the end of each record that are text fields where the user can enter data. When the user hits the submit button at the bottom I want to save all the data in all the text fields and add it to my table. How can I save the data for all the text fields? Here is my code. <h1>Testing Table</h1> <form action="/table/" method="POST"> <table> <thead> <tr> <% event_column.each do |header| %> <th> <%= header %> </th> <% end %> <