Permalink:
https://education.launchcode.org/java-web-development/assignments/tech-jobs-persistent.html
Description:
Comment from a TA about the Part 2 instructions:
"I've had a few students ask about Assignment 4 Part 2:
after making the Controllers changes, students are submitting new Employers and Skills to their forms and validating things are saved to the database... but get a 404 error after submitting the form, which has thrown them off.
As-is, the starter code returns a redirect out of processAddEmployerForm
(and equivalent for Skills Controller), but doesn't have anything mapped to the controller's root path.
Is the intent to have students implement a GetMapping
at the root path which lists all Employers/Skills? Or a redirect to view the newly-added entry?
Or is this something to provide in the starter code?"
Follow up:
"My students haven't had too much trouble implementing the missing method so far, but I'll communicate that it's ok to see the 404 if the data reaches the database.
Main point of confusion I think is that it wasn't mentioned in the directions, even though the starter code contains all the parts to make it work (template etc). But fwiw, students have the know-how and haven't seemed to struggle too much adding the method, should you want to add implementation as part of the assignment."
Slack Conversation:
https://lc101stljan2020.slack.com/archives/DT091B7BJ/p1593635635010300