- Define CRUD.
- 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.
- Why do we use
set method_override: true
? - Explain the difference between
value
andname
in this line:<input type='text' name='task[title]' value="<%= @task.title %>"/>
. - What are
params
? Where do they come from?
Forked from rwarbelow/cfu_crud_in_sinatra.markdown
Last active
December 2, 2015 15:45
-
-
Save brantwellman/2027ddf9b5d69d98a1ac to your computer and use it in GitHub Desktop.
CRUD in Sinatra -- Check for Understanding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
looks good! for #4, "name" could be explained as being the key of the params hash. for #5, params can also come from the URL.