Linking web form to sqlite3 and storing responses in the DB


Hello. I am new to cloud 9. I just figured out how to create a table in sqlite3 using the command prompt. It is a lot more complex than creating a DB in Microsoft SQL Server. I just want to know how to link the response in my form and store the information after hitting the submit button into my database. I am using ruby Also, is there an alternate way to create tables and view sqlite3 other than using the command prompt in cloud9? Thanks for the help!