主題がすべてを語っていると思います。このようなものは機能しますか?
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
あいまいな質問で申し訳ありませんが、質問から明確にする必要があり、非常に役立ちます。開発中にこの情報をどのように記録しますか?
事前に