# rankings/index.html.haml - good_students = Student.where(score: 90..100).order(score: :desc) %h3 成績上位者 %ul - good_students.each do |student| %li= student.name
解答① 成績でランク付することに倫理的な問題がある
解答② ビューに絞り込みのロジックを書いている
解答③ この記載方法では90点〜100点の生徒は抽出できない