HTML Forms and Rake

HTML Forms

Using Sinatra and Shotgun, here is the erb view and what it looks like running on a server.

HTML form erb code

HTML form server view

Rake commands:

Rake generate:model NAME="nameofclass"

Rake generate:migration NAME="nameofmigrationclass"

Rake db:create => Creates database

Rake db:migrate => Migrates all file in migration folder to database(setting up schema)

Rake db:test:prepare => prepares test database for spec tests