質問編集履歴
2
showアクションを呼び出すviewファイルの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -131,6 +131,23 @@
|
|
131
131
|
end
|
132
132
|
end
|
133
133
|
```
|
134
|
+
```ruby
|
135
|
+
.body
|
136
|
+
|
137
|
+
[index.html.haml]
|
138
|
+
|
139
|
+
= render 'groups/header'
|
140
|
+
.contents
|
141
|
+
.question
|
142
|
+
- @questions.each do |q|
|
143
|
+
.question__items
|
144
|
+
.question__items__item
|
145
|
+
=link_to new_question_answer_path(q.id), class:"question__items__item__box"do
|
146
|
+
= q.content
|
147
|
+
.question__items__show
|
148
|
+
= link_to question_path(q.id), class:"question__items__item__box" do
|
149
|
+
= "詳細"
|
150
|
+
```
|
134
151
|
### 試したこと
|
135
152
|
|
136
153
|
questionコントローラのshowアクションの記述の仕方について検索してみたが解決方法を見つけることができなかった。
|
1
Ruby on Rails のタグを付けました
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|