Topic: Access MySQL database
I need help accessing a MySQL database and reading in information from a table. I was able to do it by using the mysql2 gem directly, but the code is ugly. I wanted to be able to put this code into a model, in order to properly format the output.
I am unsure of how to do this or where to start. I don't want to write to the db, just read from it.