Automatically Wait for AJAX with Capybara

How to use Capybara’s <code>wait_for_ajax</code> helper.