NoMethodError in ProductsController#show

undefined method `name' for nil:NilClass

Extracted source (around line #17):
15
16
17
18
19
20
              
@data = Product.active.find_by(id: params[:id])
@body_id = "story"
@title = "#{@data.name} 詳細 / 商品一覧"
end
end

Rails.root: /home/web/imo

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"index", "format"=>"html"}

Response

Headers:

None