質問編集履歴

1

updeateに記述を追加

2020/10/23 05:47

投稿

yozakura10
yozakura10

スコア8

test CHANGED
File without changes
test CHANGED
@@ -206,7 +206,9 @@
206
206
 
207
207
  def update
208
208
 
209
+ prototype = Prototype.find(params[:id])
210
+
209
- if prototype.updeat(prototype_params)
211
+ if prototype.updeat(prototype_params)
210
212
 
211
213
  redirect_to prototype_path
212
214