Use rails http basic auth parsing, reuse controller, correctify comments