• Web_banner_item31
  • Spacer
  • Spacer
error
Verifique os erros abaixo:
- actionview::templateerror (undefined method `empresa' for nil:nilclass) on line #8 of app/views/layouts/pdf.html.erb: 5: <%= stylesheet link tag "/stylesheets/main small.css" %> 6: 7: 8: <% @imagem = @online.empresa.imagens.find by tipo('relatorio') unless @online.empresa.nil? %> 9: 10: 11:
app/views/layouts/pdf.html.erb:8 lib/fusion/web/helpers/pdf web site helper.rb:47:in `make pdf' lib/fusion/web/helpers/pdf web site helper.rb:74:in `make and send pdf' lib/fusion/web/paginas fixas.rb:162:in `produto pdf' app/controllers/home controller.rb:322: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 `call' puma (2.8.2) lib/puma/thread pool.rb:92:in `block in spawn thread'
Verifique os erros abaixo: ActionView::TemplateError (undefined method `empresa' for nil:NilClass) on line #8 of app/views/layouts/pdf.html.erb: 5: <%= stylesheet_link_tag "/stylesheets/main_small.css" %> 6: 7: 8: <% @imagem = @online.empresa.imagens.find_by_tipo('relatorio') unless @online.empresa.nil? %> 9: 10: 11:
app/views/layouts/pdf.html.erb:8 lib/fusion/web/helpers/pdf_web_site_helper.rb:47:in `make_pdf' lib/fusion/web/helpers/pdf_web_site_helper.rb:74:in `make_and_send_pdf' lib/fusion/web/paginas_fixas.rb:162:in `produto_pdf' app/controllers/home_controller.rb:322: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 `call' puma (2.8.2) lib/puma/thread_pool.rb:92:in `block in spawn_thread'