Restful Routing Flashcards

1
Q

What are the 7 Restful Routes?

A

index, new, create, show, edit, update, destroy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the “new” route do?

A

shows the forum to create a new entry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the “edit” route do?

A

shows the forum to update an existing entry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the verbs for each of the restful routes?

A
index - get
new - get
create - post
show - get
edit - get
update - put/patch
destroy - delete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the “show” route do?

A

takes a unique identifier for a specific item in the path and returns page/data specific to that item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly