NoMethodError in Restaurantes#detalhe

Showing /app/app/views/restaurantes/detalhe.html.erb where line #2 raised:

undefined method `titulo' for nil:NilClass
Extracted source (around line #2):
1
2
3
4
5
6
              
<% content_for :for_header do %>
<title>Paraty Tours - <%=@restaurante.titulo[I18n.locale]%></title>
<meta name="keywords" content="<%=@restaurante._keywords.join(',')%>" />
<meta name="description" content="<%=strip_tags(@restaurante.descricao[I18n.locale].to_s)[0...155]%>">
<%= stylesheet_link_tag 'blog', media: 'all', 'data-turbolinks-track' => true %>
<%= stylesheet_link_tag 'slider-pro.min', media: 'all', 'data-turbolinks-track' => true %>

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"format"=>"html",
 "locale"=>"es",
 "slug"=>"quintal-literario"}

Response

Headers:

None