Created a new controller called 'Apply' that will be used to display courses, classes and registration sheets. Changed the value being returned by each domain class to something meaningful, using the 'String toString()' (i.e. Student now returns student name (fullStudentName) as opposed to the unique identifier. Changed the URL mapping so that when Grails runs this application the homepage is '/apply/' (the newly created controller). Added login functionality to 'apply/index' method, which will be run when grails starts and further added a check() to check that a user is logged in, and if not redirect to the login page. Finally, enrolled a couple of students on to courses in the BootStrap.
Created a new controller called 'Apply' that will be used to display courses, classes and registration sheets. Changed the value being returned by each domain class to something meaningful, using the 'String toString()' (i.e. Student now returns student name (fullStudentName) as opposed to the unique identifier. Changed the URL mapping so that when Grails runs this application the homepage is '/apply/' (the newly created controller). Added login functionality to 'apply/index' method, which will be run when grails starts and further added a check() to check that a user is logged in, and if not redirect to the login page. Finally, enrolled a couple of students on to courses in the BootStrap.