回答編集履歴
1
修正
test
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
|
1
|
+
`controllers/sessions_controller.rb`
|
2
2
|
|
3
|
+
|
4
|
+
|
5
|
+
```ruby
|
6
|
+
|
7
|
+
params[:session][:remember_me] == '1' ? remember(user) : forget(user)
|
8
|
+
|
3
|
-
|
9
|
+
remember user
|
10
|
+
|
11
|
+
```
|
4
12
|
|
5
13
|
|
6
14
|
|