Generated the basic CoursesController and built out its routes using proper resources. All existence/response tests are green.
Added a name column to the course model.
Fixed a typo in the studentController spec.
Built out the new and create methods for the courseController along with basic supporting specs.
Fixed a typo in sutdentsController
Built out the CoursesController#Destroy method and supporting specs. All are green.
Built out the CoursesController#show method and supporting tests. Also updated the course factory to include a name. All courseController specs are green.
Built out the courses show page to match the student's show page. All course show page specs are green.
Built out the course's new page to match the student's new page. All course new page show specs are green. Next up is to build out the enroll and index mechanisms and pages.
Built out the courseController#index method along with supporting tests. Ideally this would be a paginated query.
Just noticed the test directory and deleted it. rspec don't need no stinking test directory!
Built out basic specs and the basic page for the course/index view. Also built some pending specs for the enroll button. Next step is to build out the enroll logic.
Moved the routes to place courses within students to allow easy access to the student id for enrollment. This required refactoring some courses controller logic, updating the form in the new view and fixing specs for all the course pages as well as the controller. All specs are now green again and the app is ready to build out the CoursesController#Enroll method.
Built out a basic version of the CoursesController#Enroll method. It will need to be altered to direct to the new enrolled student's page once that is completed. The next step is to build out the enrolled_student machinery.
Expanded the CoursesController#Show method and support specs to retrieve an enrolled student if there is one. Controller specs are green.
Expanded the coursesController#index method and supporting specs to retrieve the student's enrolledStudents from the database for use in hiding enrollment buttons.
Realized that switching enrollment buttons based on enrollment status in the course index and show was feature creep and thus unncessary atm.
Built out the callback and support specs to make an EnrolledStudentAssignment for each of a course's assignments. This is likely to be a big call and should be offloaded to an async worker.
Merge pull request #3 from islador/CourseCRUD

Course crud