I don't think @not_found_path has been defined

the not_found_path expects to be passed some id (in browser, the one stored in params[:not_found] i think)