Update contact form so it confirms the message was sent

This commit is contained in:
rebuilt 2022-11-01 17:06:01 -07:00
parent 7f433cf223
commit f8c91add3e
7 changed files with 25 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<div class="container pb-5">
<h1>Contact Form</h1>
<%= form_for @contact do |f| %>
<%= form_for @contact, url: home_index_path, method: :create, data: { turbo: false } do |f| %>
<div class="col-md-6">
<%= f.label :name %></br>
<%= f.text_field :name, required: true, class: "contact-form-text-area" %></br>

View file

@ -1 +1 @@
<%= render(partial: "new") %>
<%= render(partial: "contacts/contact_form") %>