アプリケーションを Rails 2.3.14 から Rails 3.0.1 にアップグレードしています
ビューにエラーがあると、常にこのエラーが発生します
Development mode eh? Here is the error - #<ActionView::Template::Error: ActionView::Template::Error>
app/controllers/application_controller.rb:158:in `render_500'
これは、application_controller.rb の render_500 用に記述されたコードです。
def render_500(error)
if Rails.env.production?
render :file => Rails.root.join('public','access_denied.html'), :status => 500
else
raise Exception, I18n.t('str_error')+" - #{error.inspect}"
end
end
puts ステートメントを記述してコードをデバッグしています。
解決策を教えてください。前もって感謝します。