As promised, here are my meeting notes from last Wednesday. This
afternoon, I will be posting the application we built together on Git
and instructions on how to fork your own repo and post back to master.
Best,
Liana
1. Create new ror app
>> rails oscc
2. Create Agenda scaffold & migration
>> ruby script/generate scaffold Agenda title:string description:string
3. edit your db yml
** open database.yml file and add database name, username and password
4. create database
** create oscc_development,oscc_test, oscc_production databases
rake -T db will list all database rake tasks
>>rake db:create
5. create tables
>> rake db:migrate
6. Run app
>> ruby script/server
7. View app
>> http://localhost:3000/agendas
8. Add Validations to model
>> validates_presence_of :title, :description
validates_presence_of :title, :description
Tarish