The form is helpful for development. moving it to the public folder makes it available from http://localhost:3000/testform.html
13 lines
365 B
Plaintext
13 lines
365 B
Plaintext
<h1><%= @form.title %></h1>
|
|
|
|
<%= form_with url: submission_url(@form), action: 'post', authenticity_token: false, local: true, html: { enctype: 'multipart/form-data' } do %>
|
|
<% @form.spreadsheet_headers.each do |header| %>
|
|
<p>
|
|
<label><%= header %>
|
|
<%= text_field_tag header %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= submit_tag 'Send', name: nil %>
|
|
<% end %>
|