Sinatra Pair Programming Lab
Build it together! In a new repository called sinatra_coupons
- You're going to build a Coupon application using Sinatra MVC
- You'll need a database!
- And a table for Coupons attributes like
title
,description
,product
,discount_price
,expiration_date
- You'll also need to create a migrations.sql file.
- Now, using ActiveRecord and Sinatra - create an MVC app that lists out all of the coupons. You should be able to get all Coupons and create new coupons (updating and deleting are a bonus). You will need forms! You will need ERB loops!
- Utilize controllers to accomplish this!
Notes
- You should have an
ApplicationController
, andCouponsController
- You'll also need a
Coupon
Model