質問編集履歴

1

Railsで記述していたものをhtmlで書き直した。

2019/07/16 02:29

投稿

welbet
welbet

スコア11

test CHANGED
File without changes
test CHANGED
@@ -62,19 +62,25 @@
62
62
 
63
63
 
64
64
 
65
- <%= form_for [@post, @comment] do |f| %>
65
+ <form class="new_comment" id="new_comment" action="/posts/29/comments" accept-charset="UTF-8" method="post">
66
66
 
67
- <%= f.text_area :body, placeholder: "コメント入力欄", autocomplete: "off", class: "grey lighten-5 new_text_field materialize-textarea post-show-main__textarea" %>
67
+ <input name="utf8" type="hidden" value="&#x2713;" />
68
68
 
69
- <button class="post-show-main__comment-box waves-effect waves-light btn-small" type="submit" name="action">
69
+ <input type="hidden" name="authenticity_token" value="~~~" />
70
70
 
71
- <%= f.submit "コメントする" %>
71
+ <textarea placeholder="コメント入力欄" autocomplete="off" class="grey lighten-5 new_text_field materialize-textarea post-show-main__textarea" name="comment[body]" id="comment_body">
72
72
 
73
- <i class="material-icons right">comment</i>
73
+ </textarea>
74
74
 
75
- </button>
75
+ <button class="post-show-main__comment-box waves-effect waves-light btn-small" type="submit" name="action">
76
76
 
77
+ <input type="submit" name="commit" value="コメントする" data-disable-with="コメントする" />
78
+
79
+ <i class="material-icons right">comment</i>
80
+
81
+ </button>
82
+
77
- <% end %>
83
+ </form>
78
84
 
79
85
 
80
86