title: Ruby - Test whether database connection is possible
body: <p>I am looking to implement a way to test the database connection for our application. </p>
  
  <p>We are currently having connectivity issues and therefore want to be able to check connectivity without having to login. </p>
  
  <p>Is there a way to display a page stating database connection is up or database connection is down dependent upon whether connection fails. If any additional information is needed please let me know. </p>
  
  <p>Only beginning to learn the ropes so apologies if I'm short on detail.</p>