I have been working with Rails since two months but until now I haven't use databases.
I would like that my web-app connects to a remote database (MySQL) and extract some data to plot it in Rails using Highcharts.
I have found many tutorials that explains how to connect to an existing database (editing config/database.yml) but this is in the same server.
I am using Ubuntu 14.04 LTS.
Could anyone explains me which are the steps or how can achieve this connection to the remote database with Rails and how to extract the data from a given database?