|  |        | Verifique os erros abaixo: |  | - 
actionview::templateerror (attempted to update a stale object: pedido::base) on line #6 of app/views/home/paginas-checkout-responsivo/ carrinho modelo a.html.erb:
3:         <% form tag("/home/calcular frete", :remote => true) do -%>
4:           <%= hidden field tag "frete[empresa id]", @empresa.id -%>
5:           <%= hidden field tag "frete[peso bruto]", @pedido.peso bruto -%>
6:           <%= hidden field tag "frete[maior peso]", @pedido.calcular maior peso -%>
7:           <% altura, largura, comprimento = @pedido.calcular embalagem dimensoes -%>
8:           <%= hidden field tag "frete[embalagem altura]", altura -%>
9:           <%= hidden field tag "frete[embalagem largura]", largura -%>
    app/models/pedido/frete methods.rb:102:in `calcular embalagem dimensoes'
    app/models/pedido/frete methods.rb:138:in `calcular peso cubado'
    app/models/pedido/frete methods.rb:147:in `calcular maior peso'
    app/views/home/paginas-checkout-responsivo/ carrinho modelo a.html.erb:6:in `block in  run erb app47views47home47paginas45checkout45responsivo47 carrinho modelo a46html46erb locals carrinho modelo a object'
    lib/fusion/ext/action view/helpers.rb:151:in `form tag'
    app/views/home/paginas-checkout-responsivo/ carrinho modelo a.html.erb:3
    app/views/home/paginas-checkout-responsivo/ carrinho itens modelo a.html.erb:154:in `block in  run erb app47views47home47paginas45checkout45responsivo47 carrinho itens modelo a46html46erb locals carrinho itens modelo a object'
    lib/fusion/web/helpers.rb:542:in `tabela padrao'
    app/views/home/paginas-checkout-responsivo/ carrinho itens modelo a.html.erb:1
    app/views/home/paginas-checkout-responsivo/carrinho.html.erb:16:in `block in  run erb app47views47home47paginas45checkout45responsivo47carrinho46html46erb'
    lib/fusion/web/helpers.rb:542:in `tabela padrao'
    app/views/home/paginas-checkout-responsivo/carrinho.html.erb:1
    lib/fusion/web/paginas checkout.rb:35:in `carrinho'
    app/controllers/home controller.rb:378:in `model transactions'
    lib/fusion/rack encoding.rb:10:in `call'
    puma (2.8.2) lib/puma/configuration.rb:71:in `call'
    puma (2.8.2) lib/puma/server.rb:490:in `handle request'
    puma (2.8.2) lib/puma/server.rb:361:in `process client'
    puma (2.8.2) lib/puma/server.rb:254:in `block in run'
    puma (2.8.2) lib/puma/thread pool.rb:92:in `block in spawn thread' |  | 
Verifique os erros abaixo:  
 
ActionView::TemplateError (Attempted to update a stale object: Pedido::Base) on line #6 of app/views/home/paginas-checkout-responsivo/_carrinho_modelo_a.html.erb:
3:         <% form_tag("/home/calcular_frete", :remote => true) do -%>
4:           <%= hidden_field_tag "frete[empresa_id]", @empresa.id -%>
5:           <%= hidden_field_tag "frete[peso_bruto]", @pedido.peso_bruto -%>
6:           <%= hidden_field_tag "frete[maior_peso]", @pedido.calcular_maior_peso -%>
7:           <% altura, largura, comprimento = @pedido.calcular_embalagem_dimensoes -%>
8:           <%= hidden_field_tag "frete[embalagem_altura]", altura -%>
9:           <%= hidden_field_tag "frete[embalagem_largura]", largura -%>
    app/models/pedido/frete_methods.rb:102:in `calcular_embalagem_dimensoes'
    app/models/pedido/frete_methods.rb:138:in `calcular_peso_cubado'
    app/models/pedido/frete_methods.rb:147:in `calcular_maior_peso'
    app/views/home/paginas-checkout-responsivo/_carrinho_modelo_a.html.erb:6:in `block in _run_erb_app47views47home47paginas45checkout45responsivo47_carrinho_modelo_a46html46erb_locals_carrinho_modelo_a_object'
    lib/fusion/ext/action_view/helpers.rb:151:in `form_tag'
    app/views/home/paginas-checkout-responsivo/_carrinho_modelo_a.html.erb:3
    app/views/home/paginas-checkout-responsivo/_carrinho_itens_modelo_a.html.erb:154:in `block in _run_erb_app47views47home47paginas45checkout45responsivo47_carrinho_itens_modelo_a46html46erb_locals_carrinho_itens_modelo_a_object'
    lib/fusion/web/helpers.rb:542:in `tabela_padrao'
    app/views/home/paginas-checkout-responsivo/_carrinho_itens_modelo_a.html.erb:1
    app/views/home/paginas-checkout-responsivo/carrinho.html.erb:16:in `block in _run_erb_app47views47home47paginas45checkout45responsivo47carrinho46html46erb'
    lib/fusion/web/helpers.rb:542:in `tabela_padrao'
    app/views/home/paginas-checkout-responsivo/carrinho.html.erb:1
    lib/fusion/web/paginas_checkout.rb:35:in `carrinho'
    app/controllers/home_controller.rb:378:in `model_transactions'
    lib/fusion/rack_encoding.rb:10:in `call'
    puma (2.8.2) lib/puma/configuration.rb:71:in `call'
    puma (2.8.2) lib/puma/server.rb:490:in `handle_request'
    puma (2.8.2) lib/puma/server.rb:361:in `process_client'
    puma (2.8.2) lib/puma/server.rb:254:in `block in run'
    puma (2.8.2) lib/puma/thread_pool.rb:92:in `block in spawn_thread'