getting basic auth for rails 3