アプリケーションコントローラーに次のコードがあります。
class ApplicationController < ActionController::Base
protect_from_forgery
rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found
private
def record_not_found
render :text => "404 Not Found", :status => 404
end
end
実行すると(実際に実行するとrake db:migrate
)、エラーが発生しますuninitialized constant ActiveRecord::RecordNotFound
。これは単純すぎるようです -- ヘルプ!