Week 5, Day 3

Block 1: Application Organization


Block 2 & 3: CRUD Controllers
After Hours
CRUD Controller/Views!
Take your Coupons table from las night...!
- Update your Sinatra application from last night to utilize CRUD controllers.
- Create ERB views that represent the data being rendered.
- Map
<input>
element names
to Ruby params[:names]
- Create a fully functional Sinatra app that does the following using
GET
and POST
requests:
- List all coupons (READ)
- Create a new coupon (CREATE)
- Edit a coupon (UPDATE)
- Delete a coupon (DESTROY)
Bonus
Repeat the process for creating a CRUD app for your sinatra_songs
table from last night.