Search code examples
ruby-on-railsruby-on-rails-4backbone.jsbetter-errors-gem

Rails: Can I use the ruby gem better_errors with any frontend framework?


I have a backboneJS app working with the gem rabl on Ruby on Rails


Solution

  • Better error only shows ruby errors (or rather server side errors), if it's a javascript error it will occur on the browser not the server, if the assets have errors it should appear in the precompilation, so you probably are covered too.

    Anyways, using better errors has no downsides, cause the cases that won't work with better errors won't work with the basic error pages without better errors.

    PS: If you want to debug an ajax request you can try opening the browser console and click the request that has an error and choose something that means close to 'open this request in a new tab'