回答編集履歴

1

コードを修正

2017/09/13 13:58

投稿

mtdsnsk
mtdsnsk

スコア789

test CHANGED
@@ -1,6 +1,24 @@
1
+ では
2
+
3
+
4
+
1
5
  ```Ruby
2
6
 
7
+ def index
8
+
3
- Bank.find(customer_id: current_customer.id)
9
+ if Bank.find_by(customer_id: current_customer.id)
10
+
11
+ render action: 'dashboard_a'
12
+
13
+ else
14
+
15
+ render action: 'dashboard_b'
16
+
17
+ end
18
+
19
+ end
20
+
21
+ end
4
22
 
5
23
  ```
6
24