I am on the way to learn Ruby in my university. Last week , I had to do a homework to create a simple guestbook with Ruby 1.9.3 and Sinatra 1.4.4. Now I cannot help myself anymore. I have a working guestbook, but I must migrate my guestbook to a sqlite3 database. Until now, the guestbook entries are written in a textfile. The code is very simple, but now I dont know how to use sqlite3 and write the necessary sql statements. I am kinda lost.
Is there anyone who can show or explain me how I can use my guestbook with sqlite3 instead of that textfile? I would highly appreciate it
I attached my already written ruby files.