NoMethodError in Home#brands_get

Showing /var/www/root/apps/erolove/releases/20231230071111/app/views/home/brands_get.html.haml where line #13 raised:

undefined method `image' for #<ActiveRecord::Relation []>
Extracted source (around line #13):
11
12
13
14
15
16
              
.right-block{:style => "width: 1192px;"}
- style = ""
- if !@brand.image.blank?
- style = "background-image: url(#{@brand.image.url}); background-repeat: no-repeat; background-position: 98.5% 7%; background-size: 6%;"
.top-block{:style => style}
%h1=raw @brand.name

Rails.root: /var/www/root/apps/erolove/releases/20231230071111

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"url"=>"crazy-girl"}

Response

Headers:

None