1
Hello, I am using this calculation in the controller but when I put <%= @pac %>
or <%= @sedex %>
in the view is not showing the value, someone is having the same problem?
grateful
def calculate_ship
frete = Correios::Frete::Calculador.new :cep_origem => "23970-000",
:cep_destino => params[:post_code]
servicos = frete.calcular :sedex, :pac
@pac = servicos[:pac].valor
@sedex = servicos[:sedex].valor
redirect_to checkout_order_path
end
that’s right, thanks for the tip Gui.
– dcalixto