質問編集履歴
2
文法確認
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,7 +13,6 @@
|
|
13
13
|
class Context < ApplicationRecord
|
14
14
|
has_one_attached :file_name
|
15
15
|
end
|
16
|
-
|
17
16
|
```
|
18
17
|
|
19
18
|
##terminalで叩いたコマンド
|
1
訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -44,13 +44,14 @@
|
|
44
44
|
```Ruby
|
45
45
|
class ContextsController < ApplicationController
|
46
46
|
def new
|
47
|
-
@
|
47
|
+
@context = Context.new
|
48
48
|
end
|
49
49
|
|
50
50
|
def create
|
51
|
-
@
|
51
|
+
@context = Context.create params.require(:context).permit(:file_name)
|
52
52
|
redirect_to :action => 'kegg_result'
|
53
53
|
end
|
54
|
+
|
54
55
|
end
|
55
56
|
```
|
56
57
|
|