ActiveRecord::RecordNotFound in VanbanchidaosController#download_file

Couldn't find Vanbanchidao with 'id'=6

Extracted source (around line #13):
11
12
13
14
15
16
              
end
def download_file
@model = Vanbanchidao.find(params[:id])
@model.increment!(:soluong_download)
send_file(@model.file.path,
:filename => File.basename(@model.file_url),

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"6"}

Response

Headers:

None