ActiveRecord::RecordNotFound in WebController#web_brand

Couldn't find Brand with id=9-esprit

Extracted source (around line #689):
687
688
689
690
691
692
          
#@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.joins(:photos).distinct.where(:brand_name => @brand.name).where(:hidden => 0)

Rails.root: /var/www/vhosts/lolitamoda.com/lolitamodav7

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

Request

Parameters:

{"id"=>"9-esprit"}

Response

Headers:

None