title: Making a web page with ruby without rails
body: <p>I´m looking for a way to do simple ruby code without rails. I´m coming from PHP world, and sometimes, I just build a page with a Mysql connection, run a query and show result in a simple table (for example, a simple log or report).
  Example:</p>
  
  <pre><code>&lt;?php
  $con = mysql_connect("localhost","user","pass");
  mysql_select_db("mydb");
  
  $query = mysql_query("SELECT * FROM users");
  
  while($data = mysql_fetch_assoc($query) {
     echo "&lt;p&gt; $data[name] - $data[age] &lt;/p&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>This is just a simple example, but reflects what I need to do with ruby. I don´t want all rails framework to just do something like this. How can I achieve this with simple ruby code?</p>