diff --git a/app.rb b/app.rb index 2bd6170..39f7f37 100644 --- a/app.rb +++ b/app.rb @@ -2,5 +2,18 @@ class App < Sinatra::Base + get '/newteam' do + erb :newteam + end + post '/team' do + @team_name = params[:name] + @coach = params[:coach] + @pg = params[:pg] + @sg = params[:sg] + @sf = params[:sf] + @pf = params[:pf] + @c = params[:c] + erb :team + end end diff --git a/views/newteam.erb b/views/newteam.erb index 2eb4207..1297e32 100644 --- a/views/newteam.erb +++ b/views/newteam.erb @@ -1,11 +1,33 @@ -
+Team Name: <%= @team_name %>
+Coach: <%= @coach %>
+Point Guard: <%= @pg %>
+Shooting Guard: <%= @sg %>
+Small Forward: <%= @sf %>
+Power Forward: <%= @pf %>
+Center: <%= @c %>
+ - -