-
Understand how to create and access a database with ActiveRecord
-
See how this database will be used and accessed from your Sinatra application
-
Create a new sinatra app called
sinatra_blog
and add a database to the app using the steps specified in class. Add ausers
table to the database with the following fields: email and full_name. Then create aUser
model in the app that can be used to create (read, update or delete) new user records using activerecord. The assignment will be considered complete when you are able to succesfully create new users in IRB (as specified in class). -
VERY IMPORTANT: If you haven't already done so; please ensure that your laptop is correctly set up for Rails development by following the setup instructions found on installrails.com. If this is not completed before next class, you will run into issues and you may fall behind.
Read up on HTML forms: http://www.w3schools.com/html/html_forms.asp