switch database based on input request

ActiveRecord classes hold connection info. In your case, you’ll want something like:

def action_name Person.establish_connection(connection_params) Person.find… end

Of course, there’s a lot of ways you can do this, and you’ll need to make sure that connections don’t stay open or don’t run into each other. Another note: subclasses of AR::Base share connection information, and any class down the hierarchy can define it’s own connection params.

Jason