This will be a restraunt reservation app without registration.
- Create
Reservation
andCustomer
models. - You can create your own models and controllers.
- Make a relationship between
Reservation
andCustomer
models. before_create
you must create random string and you must setreservation_code
to this attribute on Reservation model.after_create
you will send email newreservation_code
to yourcustomer
.(psuedo code)before_validation
you need to delete spaces in yourfull_name
string on Customer model. (regular expressions)- You can only save orders except sundays.