Skip to content

Instantly share code, notes, and snippets.

@blake41
Created July 9, 2013 19:41
Show Gist options
  • Save blake41/5960594 to your computer and use it in GitHub Desktop.
Save blake41/5960594 to your computer and use it in GitHub Desktop.

Build the Flatiron School

Goal - To reinforce controllers, models, and forms and the interaction between them.

Per usual we're going to create restful routes for the following objects.

School, Course, Student, Teacher

Schools have courses courses have students courses have one teacher Schools have teachers through courses

We'd like to be able to create a new school, create a course, assign it a teacher, and give it some students

Courses should be a nested resource of a school ie I should be able to go to /schools/1/courses to see a list of all the courses for a school. /schools/1/courses/4/students should show me all the students enrolled in the 4th course of the 1st school. etc etc. Your views should show the properties of the object we're viewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment