質問編集履歴

2

showアクションを呼び出すviewファイルの追加

2020/06/14 02:42

投稿

keisuke_okazaki
keisuke_okazaki

スコア5

test CHANGED
File without changes
test CHANGED
@@ -264,6 +264,40 @@
264
264
 
265
265
  ```
266
266
 
267
+ ```ruby
268
+
269
+ .body
270
+
271
+
272
+
273
+ [index.html.haml]
274
+
275
+
276
+
277
+ = render 'groups/header'
278
+
279
+ .contents
280
+
281
+ .question
282
+
283
+ - @questions.each do |q|
284
+
285
+ .question__items
286
+
287
+ .question__items__item
288
+
289
+ =link_to new_question_answer_path(q.id), class:"question__items__item__box"do
290
+
291
+ = q.content
292
+
293
+ .question__items__show
294
+
295
+ = link_to question_path(q.id), class:"question__items__item__box" do
296
+
297
+ = "詳細"
298
+
299
+ ```
300
+
267
301
  ### 試したこと
268
302
 
269
303
 

1

Ruby on Rails のタグを付けました

2020/06/14 02:41

投稿

keisuke_okazaki
keisuke_okazaki

スコア5

test CHANGED
File without changes
test CHANGED
File without changes