File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ In this lab, you'll practice building forms in Sinatra by creating a basketball
1212### Make a form
1313
14141 . Create a route that responds to a GET request at ` /team ` .
15- 2 . Create a view with a form and render it in the GET ` /team ` route.
15+ 2 . Add a form to the ` team.erb ` template and render it in the GET ` /team ` route.
16163 . The form should have fields for:
1717
1818+ Team name ('name')
@@ -31,11 +31,11 @@ It should look something like this:
3131
32321 . Create a route that responds to a POST request at ` /team `
33332 . Have the form send a POST request to this route.
34- 2 . Upon submission, render a template that displays the submitted team data and each member's data.
34+ 3 . Upon submission, pass the submitted data to the ` newteam.erb ` template.
3535
3636## Final Output
3737
38- When you post to this form you should render a page that displays the name of the team and each member of the team.
38+ Update the ` newteam.erb ` template so when you post to this form, it displays the name of the team and each member of the team.
3939
4040Your view should display something like this:
4141
You can’t perform that action at this time.
0 commit comments