File tree Expand file tree Collapse file tree
java/org/launchcode/codingevents/controllers
resources/templates/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class EventController {
2323 public String displayAllEvents (Model model ) {
2424 model .addAttribute ("title" , "All Events" );
2525 model .addAttribute ("events" , events );
26- return "events/" ;
26+ return "events/index " ;
2727 }
2828
2929 @ GetMapping ("create" )
@@ -35,7 +35,7 @@ public String displayCreateEventForm(Model model) {
3535 @ PostMapping ("create" )
3636 public String processCreateEventForm (@ RequestParam String eventName ) {
3737 events .add (new Event (eventName ));
38- return "redirect" ;
38+ return "redirect: " ;
3939 }
4040
4141}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h1>Create Event</h1>
1010
1111< form method ="post " action ="/events/create ">
1212 < input type ="text " name ="eventName ">
13- < input type ="submit " value ="Create ">
13+ < input type ="submit " value ="Create Event ">
1414</ form >
1515</ body >
1616</ html >
You can’t perform that action at this time.
0 commit comments