Rails 4 exception stack traces don't show in development

前端 未结 10 1676
星月不相逢
星月不相逢 2021-02-19 18:52

I\'m following the rails tutorial book and using the c9.io web IDE as I follow the tutorials. While working on my sample application, I noticed that exceptions aren\'t being sho

10条回答
  •  既然无缘
    2021-02-19 19:36

    I suggest use another way to show errors instead of use the default of Rails.

    I caught the same problem and tried everything, but the gem better_errors saved the day.

    In your Gemfile you can use

    group :development, :test do # I use that only in dev
      gem "better_errors"
      # dependency
      gem "binding_of_caller"
    end
    

提交回复
热议问题