| Verifique os erros abaixo: | -
actionview::templateerror (undefined method `empresa id' for nil:nilclass) on line #24 of app/views/home/paginas-fixas-responsivo/ fale conosco modelo b.html.erb:
21: <% if @empresa.web configuracao.fale conosco por empresa? -%>
22:
23: assunto
24: <%= select(:form, :web departamento id, web::configuracao::departamento.list(:all, :conditions => {:empresa id => @online.empresa id, :cancelado => false}, :order => "descricao asc"), {:include blank => true, :selected => @obj.departamento id}, :class => "input-fale-conosco") %>
25:
26: <% else -%>
27:
app/views/home/paginas-fixas-responsivo/ fale conosco modelo b.html.erb:24:in `block in run erb app47views47home47paginas45fixas45responsivo47 fale conosco modelo b46html46erb locals fale conosco modelo b object'
lib/fusion/ext/action view/helpers.rb:151:in `form tag'
app/views/home/paginas-fixas-responsivo/ fale conosco modelo b.html.erb:2
app/views/home/paginas-fixas-responsivo/fale conosco.html.erb:1
lib/fusion/web/paginas fixas.rb:265:in `fale conosco'
app/controllers/home controller.rb:377: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_id' for nil:NilClass) on line #24 of app/views/home/paginas-fixas-responsivo/_fale_conosco_modelo_b.html.erb:
21: <% if @empresa.web_configuracao.fale_conosco_por_empresa? -%>
22:
23:
Assunto
24:
<%= select(:form, :web_departamento_id, Web::Configuracao::Departamento.list(:all, :conditions => {:empresa_id => @online.empresa_id, :cancelado => false}, :order => "descricao ASC"), {:include_blank => true, :selected => @obj.departamento_id}, :class => "input-fale-conosco") %>
25:
26: <% else -%>
27:
app/views/home/paginas-fixas-responsivo/_fale_conosco_modelo_b.html.erb:24:in `block in _run_erb_app47views47home47paginas45fixas45responsivo47_fale_conosco_modelo_b46html46erb_locals_fale_conosco_modelo_b_object'
lib/fusion/ext/action_view/helpers.rb:151:in `form_tag'
app/views/home/paginas-fixas-responsivo/_fale_conosco_modelo_b.html.erb:2
app/views/home/paginas-fixas-responsivo/fale_conosco.html.erb:1
lib/fusion/web/paginas_fixas.rb:265:in `fale_conosco'
app/controllers/home_controller.rb:377: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'