Rails application takes a long time to create an error page

My Rails application very slowly creates an error page (Rail 3.1 / 3.2, ruby ​​1.9.2 / 1.9.3). For instance. I added my_bad_variable to some .haml template and

Rendered fees/index.html.haml within layouts/application (97752.1ms) Completed 500 Internal Server Error in 99579ms

ActionView :: Template :: Error (undefined local variable or method `my_bad_variable 'for # <#: 0x00000003bbf0c8>):

After removing this fake variable:

Completed 200 OK in 327ms (Views: 274.7ms | ActiveRecord: 9.8ms)

Any suggestions?

+6
source share
1 answer

I had this problem when I upgraded to rails 3.2. I added this initializer to fix it:

 module ActionDispatch module Routing class RouteSet alias :inspect :to_s end end end 

I think this was due to ri. Do you use ree?

+5
source

Source: https://habr.com/ru/post/906047/


All Articles