Skip to content

Instantly share code, notes, and snippets.

@waspyfaeleith
Created June 21, 2016 12:20
Show Gist options
  • Save waspyfaeleith/4c0a160789f7a78d23643ba0e2c83c20 to your computer and use it in GitHub Desktop.
Save waspyfaeleith/4c0a160789f7a78d23643ba0e2c83c20 to your computer and use it in GitHub Desktop.
Pizza Shop Lab

Pizza Shop Lab

Objectives
  • Complete CRUD actions
  • Add more functionality to analysis model

So far we have created new objects of Pizzas and persisted them as rows in our DB.

We have also read from the DB with the .all method we created.

Complete our CRUD actions with an update and a delete.

  • Think about whether the action is based on the instance or the class.
  • You may need to change the attr_reader to attr_accessor!
Extension:

Add further functionality to the sales model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment