An example how to properly implement Rails basic auhentication