Session 7: Exercise
EXERCISE 1:
- Create a new model to store information about cars including their make & model
- Open a rails console, and manually create a few cars
- Update your controller to show all of the cars
- You can use join on Array to output a list
EXERCISE 2 (more difficult):
- Add the ability to take in make as a param in the controller for displaying the cars
- When the param is present, only return the cars that match that make.