Skip to content

Instantly share code, notes, and snippets.

@markoa
Created January 11, 2012 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markoa/1596632 to your computer and use it in GitHub Desktop.
Save markoa/1596632 to your computer and use it in GitHub Desktop.
what to paste in application controller when cucumber doesn't tell you what failed in the view
class ApplicationController < ActionController::Base
rescue_from 'Exception' do |exception|
logger.info exception
logger.info exception.backtrace.join("\n")
render :head => 500
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment