質問編集履歴

1

謝ってcontroller_pathと記載していたので@contactに変更しました。

2018/12/17 13:20

投稿

suguru0717
suguru0717

スコア24

test CHANGED
File without changes
test CHANGED
@@ -108,7 +108,7 @@
108
108
 
109
109
  <h2 class="text-center my-5 pt-5"><span class="text-muted border-bottom border-dark pb-2">CONTACT</span></h2>
110
110
 
111
- <%= form_for(controller_path) do |f| %>
111
+ <%= form_for(@contact) do |f| %>
112
112
 
113
113
  <%= f.text_field :name , placeholder: "お名前", class: 'form-control mt-4', rows:4%>
114
114