質問編集履歴
1
自分の実際のメールアドレスの記載をしてしまったため、そちらを省きました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,59 +22,39 @@
|
|
22
22
|
|
23
23
|
<div class="contact-form-section">
|
24
24
|
|
25
|
-
|
25
|
+
<%= form_with model: @contact, :url => home_confirm_path do |form| %>
|
26
26
|
|
27
|
-
|
27
|
+
<% if @contact.errors.any? %>
|
28
28
|
|
29
|
-
|
29
|
+
<div class="alert alert-warning">
|
30
30
|
|
31
|
-
|
31
|
+
<ul>
|
32
32
|
|
33
|
-
|
33
|
+
<% contact.errors.full_messages.each do |message| %>
|
34
34
|
|
35
|
-
|
35
|
+
<li><%= message %></li>
|
36
36
|
|
37
|
-
|
37
|
+
<% end %>
|
38
38
|
|
39
|
-
|
39
|
+
</ul>
|
40
40
|
|
41
|
-
|
41
|
+
</div>
|
42
42
|
|
43
|
-
|
43
|
+
<% end %>
|
44
44
|
|
45
|
-
|
45
|
+
<%= form.email_field :email, :placeholder => "Email", class: "input-email" %>
|
46
46
|
|
47
|
-
|
47
|
+
<%= form.text_field :name, :placeholder => "Name", class: "input-name" %>
|
48
48
|
|
49
|
-
|
49
|
+
<%= form.text_field :subject, :placeholder => "Subject", class: "input-subject" %>
|
50
50
|
|
51
|
-
|
51
|
+
<%= form.text_area :message, :placeholder => "Message...", class: "textarea-message" %>
|
52
52
|
|
53
|
-
|
53
|
+
<%= form.submit "Confirm", class: "submit-send" %>
|
54
54
|
|
55
|
+
<% end %>
|
55
56
|
|
56
|
-
|
57
|
-
<!----------下記htmlでのformタグ内容---------->
|
58
|
-
|
59
|
-
<!--<form action="#" method="post">
|
60
|
-
|
61
|
-
<input class="input-email" type="text" name="email" placeholder="Email*">
|
62
|
-
|
63
|
-
<input class="input-name" type="text" name="name" placeholder="Name*">
|
64
|
-
|
65
|
-
<input class="input-subject" type="text" name="subject" placeholder="Subject">
|
66
|
-
|
67
|
-
<textarea class="textarea-message" name="message" placeholder="Message..."></textarea>
|
68
|
-
|
69
|
-
<input type="hidden" name="tomail" value="iyasiken@gmail.com">
|
70
|
-
|
71
|
-
<input class="submit-send" type="submit" value="SEND">
|
72
|
-
|
73
|
-
</form>-->
|
74
|
-
|
75
|
-
<% end %>
|
76
|
-
|
77
|
-
|
57
|
+
</div>
|
78
58
|
|
79
59
|
```
|
80
60
|
|