質問編集履歴
1
コードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,6 +14,11 @@
|
|
14
14
|
#該当のソースコード
|
15
15
|
|
16
16
|
```rb
|
17
|
+
get "posts/:id" =>"posts#show"
|
18
|
+
```
|
19
|
+
|
20
|
+
|
21
|
+
```rb
|
17
22
|
def show
|
18
23
|
@post =Post.all
|
19
24
|
@id =params[:id]
|