質問編集履歴

1

newのviewを追記致します。

2019/06/15 05:27

投稿

baseball1551
baseball1551

スコア16

test CHANGED
File without changes
test CHANGED
@@ -114,7 +114,37 @@
114
114
 
115
115
  ```
116
116
 
117
+ ```
117
118
 
119
+ #new.html.slim
120
+
121
+ h1 新規投稿
122
+
123
+
124
+
125
+ .nav.justify-content-end
126
+
127
+ = link_to '一覧', posts/path, class: 'nav-link'
128
+
129
+
130
+
131
+ = form_with model: @post, local: true do |f|
132
+
133
+ .form-group
134
+
135
+ = f.label :name
136
+
137
+ = f.text_field :name, class: 'form-control', id: 'post_name'
138
+
139
+ .form-group
140
+
141
+ = f.label :article
142
+
143
+ = f.text_area :article, rows: 5, class: 'form-control', id: 'post_article'
144
+
145
+ = f.submit nil, class: 'btn btn-primary'
146
+
147
+ ```
118
148
 
119
149
 
120
150
 
@@ -130,4 +160,6 @@
130
160
 
131
161
 
132
162
 
163
+
164
+
133
165
  ここにより詳細な情報を記載してください。