- 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 and name in this line:
<input type='text' name='task[title]' value="<%= @task.title %>"/>.
- What are params? Where do they come from?
-
-
Save MsJennyGiraffe/3bae8e80fdff023088679957cff1026e to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CRUD is an acronym that stands for: Create, Read, Update, and Delete.
Seven path combinations for full CRUD functionality are:
The name is asking for the title of the params whereas the value is asking for the title of the task object.
Params are inputs that a server receives from a user. In Sinatra, they are a string with syntax relatable to a hash.