-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built Form With ERB #16
base: master
Are you sure you want to change the base?
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2,5 +2,15 @@ | |||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
class App < Sinatra::Base | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
get '/newteam' do | ||||||||||||||||||||||||||||||||||||
erb :newteam | ||||||||||||||||||||||||||||||||||||
end | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
post '/team' do | ||||||||||||||||||||||||||||||||||||
@teamData = params | ||||||||||||||||||||||||||||||||||||
erb :team | ||||||||||||||||||||||||||||||||||||
end | ||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
end |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,7 +5,14 @@ | |||||
<title>Basketball Team</title> | ||||||
</head> | ||||||
<body> | ||||||
|
||||||
<h1>Team Name: <%=@teamData["name"] %> </h1> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These all should have spaces after the =.
Suggested change
|
||||||
<h2>Coach: <%=@teamData["coach"]%> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just went in and made those suggested changes |
||||||
<h2>Point Guard: <%=@teamData["pg"]%> | ||||||
<h2>Shooting Guard: <%=@teamData["sg"]%> | ||||||
<h2>Small Forward: <%=@teamData["sf"]%> | ||||||
<h2>Power Forward: <%=@teamData["pf"]%> | ||||||
<h2>Center: <%=@teamData["c"]%> | ||||||
|
||||||
|
||||||
|
||||||
</body> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're not in Kansas anymore...