How to make a live search box with Ruby on Rails

A live search box is one where you run MySQL queries on each keystroke in the search box and immediately display the results below the search box.