ActiveRecord::RecordNotFound in PubController#person

Couldn't find all Oldids with 'id': (first, {:conditions=>["old_id = ?", "2"]}) (found 0 results, but was looking for 2)

Extracted source (around line #83):
81
82
83
84
85
86
          
@person = Person.find(params[:id])
rescue
oldid = Oldid.find(:first, :conditions => ["old_id = ?", params[:id]])
if oldid then
redirect_to(:action => "person", :id => oldid.new_id)
else

Rails.root: /home/lonsea/lonsea

Application Trace | Framework Trace | Full Trace
app/controllers/pub_controller.rb:83:in `rescue in person'
app/controllers/pub_controller.rb:80:in `person'

Request

Parameters:

{"id"=>"2"}

Response

Headers:

None