NoMethodError in Detalle#show

Showing C:/Bitnami/rubystack-2.3.8/projects/educacion3002/app/views/shared/_header.html.erb where line #667 raised:

undefined method `gsub' for nil:NilClass

Trace of template inclusion: app/views/layouts/application.html.erb

Rails.root: C:/Bitnami/rubystack-2.3.8/projects/educacion3002

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"locale"=>"es",
 "id"=>"Auditor-Interno-ISO-50001:2018--Sistemas-de-Gesti%C3%B3n-de-la-Energ%C3%ADa-(en-alianza-con-SGS)"}

Response

Headers:

None