I think subject says it all. Would something like this work?
class ApplicationController < ActionController::Base
rescue_from Exception, :with => :bad_call
def bad_call
# how would I log the specific sql for ActiveRecord::RecordNotFound
end
end
Sorry for vague question but should be clear from the question and would be a tremendous help. How would I log this information esp in development?
ths in advance