erreur 500 quand division par 0
I, [2024-02-03T14:43:05.374286 #718486] INFO -- : Completed 500 Internal Server Error in 170ms (ActiveRecord: 5.8ms | Allocations: 16357)
F, [2024-02-03T14:43:05.375641 #718486] FATAL -- :
ActionView::Template::Error (Computation results to 'Infinity'):
22: <div class="col">
23: <%= number_to_currency(service.monthly_recurring_charge) %>/mois, par <%= t(service.monthly_payment_method, scope: [:payment_method]).downcase %></br>
24: <% if service.balance_deposit > 0%>
25: Il reste <%= (service.balance_deposit / service.monthly_recurring_charge).to_i %> mois d'acompte
26: <% end %>
27: </div>
28: </div>
app/views/admin/users/_service_item.html.erb:25:in `to_i'
app/views/admin/users/_service_item.html.erb:25
app/views/admin/users/show.html.erb:342
app/views/admin/users/show.html.erb:341