NoMethodError in Articles#show

Showing /home/deploy/motilla_app/releases/20230509225900/app/views/articles/show.html.haml where line #10 raised:

undefined method `section_id' for nil:NilClass
Extracted source (around line #10):
8
9
10
11
12
13
              
- content_for :link do
=raw('/lanoche/')
- elsif @article.category.section_id == 2
- content_for :detail do
= t('.ocio')
- content_for :link do

Rails.root: /home/deploy/motilla_app/releases/20230509225900

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"exposicion-objetivo-planeta-2030-motilla-del-palancar"}

Response

Headers:

None