質問編集履歴
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,6 +48,7 @@
|
|
48
48
|
```
|
49
49
|
```ruby
|
50
50
|
controllers/sessions_controller.rb
|
51
|
+
|
51
52
|
class SessionsController < ApplicationController
|
52
53
|
# ログイン処理 http://127.0.0.1:3000/login.json
|
53
54
|
def create
|
@@ -56,7 +57,7 @@
|
|
56
57
|
log_in user
|
57
58
|
render json: { status: 'SUCCESS LOGIN', user: user }
|
58
59
|
else
|
59
|
-
render json: { status: 'SUCCESS FAILD, user: user }
|
60
|
+
render json: { status: 'SUCCESS FAILD', user: user }
|
60
61
|
end
|
61
62
|
end
|
62
63
|
|