File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33class App < Sinatra ::Base
44
5- get '/newteam' do
6- erb :newteam
7- end
8-
9- post '/team' do
10- @name = params [ :name ]
11- @coach = params [ :coach ]
12- @pg = params [ :pg ]
13- @sg = params [ :sg ]
14- @sf = params [ :sf ]
15- @pf = params [ :pf ]
16- @c = params [ :c ]
17- erb :team
18- end
19-
205
216end
Original file line number Diff line number Diff line change 22< html >
33 < head >
44 < meta charset ="UTF-8 ">
5- < title > Basketball Team</ title >
5+ < title > Basketball Team Signup </ title >
66 </ head >
77 < body >
8- < form action ="/team " method ="post ">
9- </ form >
10- Name< input type ="text " name ="name ">
11- Coach< input type ="text " name ="coach ">
12- Point Guard< input type ="text " name ="pg ">
13- Shooting Guard< input type ="text " name ="sg ">
14- Power Guard< input type ="text " name ="pf ">
15- Small Forward< input type ="text " name ="sf ">
16- Center < input type ="text " name ="c ">
17- < input type ="submit " name ="submit " value ="submit " id ="submit "/>
18- </ form >
8+
199
2010 </ body >
2111</ html >
Original file line number Diff line number Diff line change 22< html >
33 < head >
44 < meta charset ="UTF-8 ">
5- < title > Basketball Team Sign Up </ title >
5+ < title > Basketball Team</ title >
66 </ head >
77 < body >
8- < h1 > Create a Basketball Team! </ h1 >
9- Team Name: <%= @name %>
10- Coach: <%= @coach %>
11- Point Guard: <%= @pg %>
12- Power Foward: <%= @pf %>
13- Shooting Guard: <%= @sg %>
14- Small Forward: <%= @sf %>
15- Center: <%= @c %>
16-
8+
179
1810
1911 </ body >
You can’t perform that action at this time.
0 commit comments