I am creating a Rails front-end for a legacy application. For this
application the username and password for the database must be provided
by the user. i.e. each session needs a separate connection to the
database using the credentials of the user logged in to that session.
Does anyone have any idea where to even start? It seems like Rails won’t
boot without a database configured (it fails in initializer.rb if you
don’t specify a DB). The problem I have is that until the user actually
enters their name and password I have no way to log in to the DB.