NoMethodError in Trips#show

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

undefined method `name' for nil:NilClass
Extracted source (around line #6):
4
5
6
7
8
9
              
=raw('/transportes/')
- content_for :title do
= @trip.transport.name
- content_for :description do
= @trip.transport.name
= t('.en_motilla_del_palancar')

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

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"3"}

Response

Headers:

None