RailsCasts Pro episodes are now free!

Learn more or hide this

Jean-Philippe Boily's Profile

GitHub User: jipiboily

Site: http://jipiboily.com

Comments by Jean-Philippe Boily

Avatar

I've made some short testing and capybara-webkit is still around 20% faster in our use case. I suggest you try it for yourself and see, that's a matter of minutes or hours if run longer tests to have better metrics.

Avatar

Just for the sake of new visitors, Rails has changed quite a bit during the last 4 years. Here's how you could do it now:

application_controller.rb
class ApplicationController < ActionController::Base
  protect_from_forgery
  rescue_from Whatever::Exception, :with => :whatever_exception
  
  private
    def whatever_exception
      # do something here
    end
end

Here's some basic guide (official)