Skip to content

Instantly share code, notes, and snippets.

@chadellison
chadellison / cfu_crud_in_sinatra.markdown
Created February 2, 2016 20:15 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. Define CRUD.
  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.
  3. Why do we use set method_override: true?
  4. Explain the difference between value and name in this line: <input type='text' name='task[title]' value="<%= @task.title %>"/>.
  5. What are params? Where do they come from?
@chadellison
chadellison / index.css
Created May 16, 2016 15:17 — forked from neight-allen/index.css
Example code used for a Turing lesson about basic jQuery DOM traversal and manipulation
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600);
body {
background-color: white;
font-family: "Open Sans", Helvetica, sans-serif;
font-size: 12px;
}
td, th {
padding: 0.5em;