What are our Nested Routes? (We need a nested new route and either a nested index or nested show route)
# table migration for: examples
# t.string :name
# t.string :etc…
class Example
# relationships
# validations
# user submittable attributes (if this is a join model)
# scope_methods (if any)
end
Project Examples to flesh out:
- Doctor, Patient and Appointment
- User, Project, Task
- Project, Programmer, Assignment
- Recipe, Ingredient, RecipeIngredient
- User, Exercise, ExerciseLog
- User, Topic, Interest
- User, Medication, Prescription
- User, Movie, Review
- Dancer, DanceClass, Enrollments
- Character, Motivation, Alignment
It probably doesn't make sense to have this route because a User shouldn't be able to create an exercise log that belongs to another user. I might use this one instead:
/exercises/:exercise_id/exercise_logs/new