[resolvido] - i-Diário - erro ao tentar exibir relatório de avaliações


#1

Ao tentar exibir um relatório de avaliações, o sistema exibe as seguintes um tela de erro com o seguinte conteúdo:

Errno::ENOENT in ExamRecordReportController#report

No such file or directory @ rb_sysopen - /home/administrador/i-diario/public/relatorios/registro-de-avaliacao-61baa4a7010ed1852802fbf1c87a39d0.pdf

Extracted source (around line #356 ):

354 355 356 357 358 359 def send_pdf(prefix, pdf_to_s)

name = report_name(prefix)

File.open("#{Rails.root}/public#{name}", ‘wb’) do f

f.write(pdf_to_s)

end

redirect_to name

Rails.root: /home/administrador/i-diario

Application Trace | Framework Trace | Full Trace

app/controllers/application_controller.rb:356:in `initialize'app/controllers/application_controller.rb:356:in `open'app/controllers/application_controller.rb:356:in `send_pdf'app/controllers/exam_record_report_controller.rb:16:in `report'app/controllers/application_controller.rb:333:in `set_thread_origin_type'app/controllers/application_controller.rb:324:in `set_user_current'app/models/entity.rb:18:in `using_connection'app/controllers/application_controller.rb:67:in `handle_customer'

Request

Parameters :

{“utf8”=>“✓”, “authenticity_token”=>“tNOHkZqaqNlUW0x/fn6Vyy293slTNBgKsWTFsxwvov5tOo7cuz0YZ7QSWwYQOJwg0BETycGbN/b/AF5BLu9vzQ==”, “exam_record_report_form”=>{“unity_id”=>“2”, “classroom_id”=>“32”, “discipline_id”=>“1”, “school_calendar_step_id”=>“5”}, “commit”=>“Imprimir”, “locale”=>“pt-BR”}

Toggle session dump

Toggle env dump

Response

Headers :

None

x

>>


#2

Resolvido criando a pasta i-diario/public/relatorios