title: Sinatra, MySQL and ActiveRecord
body: <p>how do I set up a simple sinatra app to use MySQL and ActiveRecord? I found some solutions, but none of them worked (maybe they are outdated):</p>
  
  <p><a href="http://ericfarkas.com/posts/sinatra-activerecord-and-mysql/" rel="nofollow">http://ericfarkas.com/posts/sinatra-activerecord-and-mysql/</a></p>
  
  <p><a href="http://labs.thredup.com/setting-up-sinatra-with-mysql-and-activerecor" rel="nofollow">http://labs.thredup.com/setting-up-sinatra-with-mysql-and-activerecor</a></p>
  
  <p>So what is the best practise method, to use Sinatra along with MySQL and ActiveRecord? The <a href="https://github.com/janko-m/sinatra-activerecord" rel="nofollow">https://github.com/janko-m/sinatra-activerecord</a> gem is only for sqlite3, as far as I can see.</p>
  
  <p>I'm not sure if I need models or just plain SQL queries. But getting it to work all together would help me a lot.</p>