Create Rails Form #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request implements a basic team creation feature for a basketball team, including routing, controller actions, and user-facing forms and views. It allows users to submit a form with team and player information, and then displays the created team details. Several placeholder comments and TODOs have been replaced with working code. Additionally, there are removals of various Sprockets cache files, which are not relevant to the main application logic.
Team creation feature implementation:
/newteam
for displaying the form and/team
for processing form submissions inconfig/routes.rb
.new
andcreate
actions inTeamsController
, including strong parameter handling to permit team and player fields.app/views/teams/new.html.erb
, allowing input for team name, coach, and player positions.app/views/teams/create.html.erb
, showing all provided details.Other changes:
tmp/cache/assets/sprockets
directory. These changes do not affect application functionality. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]