質問編集履歴

1

誤字の修正

2020/05/18 09:26

投稿

akaki
akaki

スコア15

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  ```CafeteriaRB
42
42
 
43
- def self.create_all_ranks
43
+ def self.create_all_ranks
44
44
 
45
45
  Cafeteria.find(Like.group(:cafeteria_id).order('count(cafeteria_id) desc').pluck(:cafeteria_id))
46
46
 
@@ -69,8 +69,6 @@
69
69
  @all_ranks = Cafeteria.create_all_ranks
70
70
 
71
71
  @cafeterias = @all_ranks.includes(:user).page(params[:page]).per(6)
72
-
73
- end
74
72
 
75
73
  end
76
74