質問編集履歴
1
viewの公開範囲の拡大
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,11 +11,22 @@
|
|
11
11
|
```
|
12
12
|
またエラー箇所の記述は以下の通りです。
|
13
13
|
```ここに言語を入力
|
14
|
+
<div class= "container">
|
15
|
+
<h2 class="pt-2">投稿フォーム</h2>
|
16
|
+
<div class "posts-container">
|
17
|
+
<%= form_for(@post, :url => { controller:'posts', action:'create'})do |f| %>
|
18
|
+
<div class="post2 pt-3">
|
14
19
|
<div class="check_box">
|
15
20
|
<span>タグ</span>
|
16
21
|
<%= form.collection_check_boxes(:tag_ids, Tag.all, :id, :name) do |tag| %>
|
17
22
|
<div>
|
18
23
|
<%= tag.label do %>
|
19
24
|
<%= tag.check_box %>
|
25
|
+
<%= tag.text %>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
30
|
+
ーーーーーーーーーーーーーーーーーーーーーーーーー
|
20
31
|
```
|
21
32
|
よろしくお願いします。
|