title: Dynamic connection to second MySQL database in Ruby on Rails
body: <p>I'm working on a rails application that will migrate user content.  I need to take in database parameters via a form and use them to connect to the given database.  What's the best way to achieve this?  I've attempted using <code>Mysql.real_connect</code> with no joy.</p>