diff --git a/Gemfile b/Gemfile index 08117d795..1cddcd5a2 100644 --- a/Gemfile +++ b/Gemfile @@ -74,6 +74,8 @@ group :development do # Installation of the debugger gem fails on Travis CI, # so we don't use it in the test environment gem 'debugger' + gem 'better_errors' + gem 'binding_of_caller' end # Markdown formatting for updates etc diff --git a/Gemfile.lock b/Gemfile.lock index 52956e6a7..d2b1201cd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -60,12 +60,18 @@ GEM multi_json (~> 1.0) arel (3.0.2) bcrypt-ruby (3.1.1) + better_errors (1.0.1) + coderay (>= 1.0.0) + erubis (>= 2.6.6) + binding_of_caller (0.7.2) + debug_inspector (>= 0.0.1) bluecloth (2.2.0) bootstrap-datepicker-rails (1.1.1.3) railties (>= 3.0) builder (3.0.4) cancan (1.6.10) chunky_png (1.2.8) + coderay (1.1.0) coffee-rails (3.2.2) coffee-script (>= 2.2.0) railties (~> 3.2.0) @@ -91,6 +97,7 @@ GEM csv_shaper (1.0.0) activesupport (>= 3.0.0) dalli (2.6.4) + debug_inspector (0.0.2) debugger (1.6.1) columnize (>= 0.3.1) debugger-linecache (~> 1.2.0) @@ -260,6 +267,8 @@ PLATFORMS DEPENDENCIES active_utils (= 1.0.5)! activemerchant (= 1.33.0)! + better_errors + binding_of_caller bluecloth bootstrap-datepicker-rails bundler (>= 1.1.5) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 69e9a95a2..15af8ea02 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -9,6 +9,9 @@ class HomeController < ApplicationController # caching will be effective. respond_to do |format| + foo = "bar" + @fred = "barney" + raise "ohno! #{@fred}" format.html # index.html.haml end end