ActiveRecord::RecordNotFound in WebController#web_brand

Couldn't find Brand with id=the-dudes

Extracted source (around line #537):
535
536
537
538
539
540
          
#@brand = Brand.where(:name => params[:brand]).first
@brand = Brand.find(params[:id])
@brand_photos = @brand.brand_photos
#@products = Product.where(:brand_name => params[:brand])
@products = Product.where(:brand_name => @brand.name).where(:hidden => 0)

Rails.root: /var/www/vhosts/sniker.es/sniker

Application Trace | Framework Trace | Full Trace
app/controllers/web_controller.rb:537:in `web_brand'

Request

Parameters:

{"yith_wcan"=>"1",
 "pwb-brand"=>"the-dudes",
 "product_cat"=>"sudaderas",
 "id"=>"the-dudes"}

Response

Headers:

None