Posts by Alex Silva • 3 points
1 post
-
-3
votes1
answer38
viewsQ: I am not able to solve this error of syntax,
class Sale < ApplicationRecord belongs_to :client belongs_to :user belongs_to :discount has_many :product_quantities has_one :comission after_save do calc = 0 # Soma o preço dos produtos vezes a…