質問編集履歴

2

文法確認

2019/11/12 11:28

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -27,8 +27,6 @@
27
27
  has_one_attached :file_name
28
28
 
29
29
  end
30
-
31
-
32
30
 
33
31
  ```
34
32
 

1

訂正

2019/11/12 11:28

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -90,7 +90,7 @@
90
90
 
91
91
  def new
92
92
 
93
- @fiels = Context.new
93
+ @context = Context.new
94
94
 
95
95
  end
96
96
 
@@ -98,11 +98,13 @@
98
98
 
99
99
  def create
100
100
 
101
- @fiels = Context.create(params.require(:context).permit(:file_name))
101
+ @context = Context.create params.require(:context).permit(:file_name)
102
102
 
103
103
  redirect_to :action => 'kegg_result'
104
104
 
105
105
  end
106
+
107
+
106
108
 
107
109
  end
108
110