diff --git a/app.rb b/app.rb index 2bd6170..7e4298a 100644 --- a/app.rb +++ b/app.rb @@ -1,6 +1,20 @@ + require 'sinatra/base' class App < Sinatra::Base + get '/newteam' do + erb :newteam + end + post '/team' do + @name = params[:name] + @coach = params[:coach] + @pg = params[:pg] + @sg = params[:sg] + @pf = params[:pf] + @sf = params[:sf] + @c = params[:c] + erb :team + end end diff --git a/views/newteam.erb b/views/newteam.erb index 2eb4207..f75ca36 100644 --- a/views/newteam.erb +++ b/views/newteam.erb @@ -5,7 +5,16 @@