Skip to content

Instantly share code, notes, and snippets.

View damwhit's full-sized avatar
🤘

David Whitaker damwhit

🤘
View GitHub Profile

Technology in the food system: Tracking where YOUR food comes from.md

Background

  • Came from food system - most recently managed operations for small food manufacturer in Boulder

How food gets from farm to table

  • Ingredient production (agriculture)
  • Ingredient prep (processing of ingredients prior to combining pieces)
@damwhit
damwhit / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 20:21 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD. CRUD is an acronym that stands for create, read, update and delete. These four words correspond to the verbs in HTTP. In order to have full CRUD functionality within a Sinatral app, the app must be able to do all four of these things.
  2. There are seven verb + path combinations that are necessary in a basic Sinatra app in order to provide full CRUD functionality. List each of the seven combinations, and explain what each is for. i. Read '/tasks' & GET shows view of all tasks from index.erb ii. Read '/tasks/:id' & GET shows view of a specific task from show.erb iii. Create 'tasks/new' & GET makes form to create a new task in new.erb iv. Create '/tasks' & POST sends data to the server and redirect to '/tasks' v. Update '/tasks' & GET makes a form to input and update an existing task from edit.erb vi. Update '/tasks/:id/edit' & PUT sends data to the server to update existing task information vii. Delete '/tasks/:id' & Delete deletes existing information