質問編集履歴
1
コードにコメント追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
def by_index
|
18
18
|
|
19
19
|
index = params[:index]
|
20
|
+
|
21
|
+
# pictureテーブルのpictureカラムにbase64エンコードした画像が入っている
|
20
22
|
|
21
23
|
picture = Picture.find_by(index: index).picture
|
22
24
|
|