Follows Railscast #136, http://railscasts.com/episodes/136-jquery-ajax-revised