Bernardino ha scritto:Di solito è l'ultima riga del file di log.
Oppure ripeti l'operazione che genera l'errore e l'ultimo messaggio del log dovrebbe chiarire quale è il problema riscontrato.
Comunque, se hai bisogno, non esitare a chiedere: sono a disposizione.
Buona fortuna nel risolvere il tuo problema.
Si tratta del file production dentro la cartella log ?
Questo è ultimo tratto del codice
- Codice: Seleziona tutto
Started GET "/reports/31/inventory" for 127.0.0.1 at 2024-03-20 09:17:00 +0100
Processing by ReportsController#inventory as HTML
Parameters: {"id"=>"31"}
Rendered reports/_report_settings.html.erb (11.0ms)
Rendered reports/inventory.html.erb within layouts/application (18.0ms)
Completed 500 Internal Server Error in 505ms (ActiveRecord: 70.0ms)
ActionView::Template::Error (undefined method `name' for nil:NilClass):
44: <% end %>
45: <h3><%= Custodian.model_name.human({:count => fond.custodians.size}) %></h3>
46: <% fond.custodians.each do |custodian| %>
47: <h4><%= custodian.display_name %></h4>
48: <%= raw(make_html(@report_settings, :custodian, custodian)) %>
49: <% end %>
50: <% insert_separator = true %>
app/models/custodian.rb:172:in `display_name'
app/views/reports/inventory.html.erb:47:in `block (2 levels) in _app_views_reports_inventory_html_erb__48087372_69819576'
app/views/reports/inventory.html.erb:46:in `block in _app_views_reports_inventory_html_erb__48087372_69819576'
app/views/reports/inventory.html.erb:23:in `each'
app/views/reports/inventory.html.erb:23:in `_app_views_reports_inventory_html_erb__48087372_69819576'
app/controllers/reports_controller.rb:170:in `inventory'