Skip to content

Commit cb67435

Browse files
committed
style edits
1 parent 72be7ba commit cb67435

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
# Basketball Season!
1+
# Sinatara Forms Lab
22

3-
## Description
3+
## Overview
44

55
In this lab, you'll practice building forms in Sinatra by creating a basketball team sign-up sheet. Your application will have a basic html form, and will display the data from the form after it has been submitted by the user.
66

77
## Instructions
88

9-
1. `bundle install`
10-
2. `bundle exec shotgun`
9+
1. Run `bundle install`
1110

12-
### Make a form
11+
2. Run `bundle exec shotgun`
1312

14-
1. Create a route that responds to a GET request at `/team`.
15-
2. Add a form to the `team.erb` template and render it in the GET `/team` route.
16-
3. The form should have fields for:
13+
3. Make a form
1714

18-
+ Team name ('name')
19-
+ Coach ('coach')
20-
+ Point Guard ('pg')
21-
+ Shooting Guard ('sg')
22-
+ Power Forward ('pf')
23-
+ Small Forward ('sf')
24-
+ Center ('c')
15+
Create a route that responds to a GET request at `/team`.
16+
Add a form to the `team.erb` template and render it in the GET `/team` route.
17+
The form should have fields for:
18+
Team name ('name')
19+
Coach ('coach')
20+
Point Guard ('pg')
21+
Shooting Guard ('sg')
22+
Power Forward ('pf')
23+
Small Forward ('sf')
24+
Center ('c')
2525

26-
It should look something like this:
26+
It should look something like this:
2727

28-
![form for basketball team](https://curriculum-content.s3.amazonaws.com/web-development/Sinatra/basketball-form.png)
28+
![form for basketball team](https://curriculum-content.s3.amazonaws.com/web-development/Sinatra/basketball-form.png)
2929

30-
### Handle form submission
30+
4. Handle form submission
3131

32-
1. Create a route that responds to a POST request at `/team`
33-
2. Have the form send a POST request to this route.
34-
3. Upon submission, pass the submitted data to the `newteam.erb` template.
32+
Create a route that responds to a POST request at `/team`
33+
Have the form send a POST request to this route.
34+
Upon submission, pass the submitted data to the `newteam.erb` template.
3535

36-
## Final Output
36+
5. Final Output
3737

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.
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

40-
Your view should display something like this:
40+
Your view should display something like this:
4141

42-
![completed form](https://curriculum-content.s3.amazonaws.com/web-development/Sinatra/basketball-results.png)
42+
![completed form](https://curriculum-content.s3.amazonaws.com/web-development/Sinatra/basketball-results.png)
4343

44-
## Deliverables
44+
6. Deliverables
4545

46-
Pass the tests!
46+
Pass the tests!
4747

4848
## Resources
4949
* [Ashley William's GitHub](https://github.com/ashleygwilliams/) - [Sinatra Form Party](https://github.com/ashleygwilliams/sinatra-form-party)

0 commit comments

Comments
 (0)