# 버그를 찾아라: Ruby on Rails > 코드 한 조각. 버그를 찾거나, 버그가 없음을 증명하세요. 데일리 챌린지: 2026-08-19 (UTC) · Mid-Level ```ruby class CartCalculator def total_with_discount(items, discount_rate) subtotal = items.sum(&:price) discount = subtotal * discount_rate subtotal - discount end end ``` ## 당신의 판단 - 보안 취약점 - 로직 버그 - 코드 스타일 - 문제 없음 하루 한 번. 제출하면 바로 정답이 표시됩니다. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/daily/ruby-on-rails