Skip to content

Instantly share code, notes, and snippets.

@GSmes
Forked from Carmer/crud.markdown
Created June 28, 2016 19:05
Show Gist options
  • Save GSmes/04550a6592212fb310fe5091dbf5e823 to your computer and use it in GitHub Desktop.
Save GSmes/04550a6592212fb310fe5091dbf5e823 to your computer and use it in GitHub Desktop.
  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?

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