Skip to content

Create Rails Form #1

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mclancy96
Copy link

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:

  • Added GET and POST routes for team creation: /newteam for displaying the form and /team for processing form submissions in config/routes.rb.
  • Implemented new and create actions in TeamsController, including strong parameter handling to permit team and player fields.
  • Created a form for team creation using Rails form helpers in app/views/teams/new.html.erb, allowing input for team name, coach, and player positions.
  • Built a view to display the submitted team information in app/views/teams/create.html.erb, showing all provided details.

Other changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant