Rails - Index of/

rails
ruby

#1

Hi,

I’ve recently setup a new Rails environment with MySQL but when I run the application the preview just shows up with the app directory.
I’ve tried editing my database.yml file to work with MySQL but but can’t get it to work.

These are my database.yml default settings:

default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: <%=ENV[‘darraghsan’]%>
host: <%=ENV[‘IP’]%>
password:
socket: /var/run/mysqld/mysqld.sock

Below is a screenshot of what I see when I run my app,

Any help is appreciated.


#2

Are you running your server with rails server command?