質問編集履歴
2
本文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
def show
|
15
15
|
~
|
16
16
|
customer = Customer.find(1)
|
17
|
-
::CustomerUpdate::Cust
|
17
|
+
::CustomerUpdate::UpdateCusotmer.new(customer).call
|
18
18
|
~
|
19
19
|
end
|
20
20
|
end
|
1
エラー文の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
まずは動くものをと思い、定義したService層のメソッドをコントローラーから呼ぼうとしたのですが、以下エラーとなってしまい教えていただきたいと思います...
|
5
5
|
|
6
6
|
エラー文
|
7
|
-
`NameError (uninitialized constant CustomerUpdat)
|
7
|
+
`NameError (uninitialized constant CustomerUpdate):
|
8
|
+
app/controllers/customers_controller.rb:23:in 'update'`
|
8
9
|
|
9
10
|
**コントローラー**
|
10
11
|
`customers_controller.rb`
|