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"=>"ActualizaciĆ³n-ISO-37001:2016---Sistema-de-GestiĆ³n-Antisoborno-(en-alianza-con-SGS)"}

Response

Headers:

None