Added /register URL to index.erb so that the email input field is pointing to a new URL
Changed the form method in index from GET to POST. Then added an endpoint in main.rb to accept the input from the form.
Created a plain text file called database to store the email addresses that are submitted from the form in index
Removed the greetings from main.rb and now trying to get params to work
Added registration view to present to the user once they have submitted their email address
Added a minor comment in main.rb to help me with readability as this file gets more complicated
On submission of the form Ruby now writes to database.txt, though I now need to get it to write the info that we pass into the form
Oh my god. Can't believe it but I've managed to pass the input from the form into the text file. Next up need to figure out how to add a new line after the input and to also stop overwriting the previous content
Made it so that new email addresses are appended to the file rather than overwriting the previous content. Still need to figure out how to add a new line
FUCK YES. Managed to write new email addresses onto a new line. Had to use file.puts rather than file.write
Merge pull request #13 from adamtaylo/working

This. Guy.

Massive props, would've loved to see you screaming in happiness to the laptop when everything clicked : )

UPWARDS AND ONWARDS!!!