ActionController::HttpAuthentication and MySQL

Has anyone a example how to authenticate against users stored in a MySQL-Database?