Week 3 Outline
- Checklist reminder
- Discuss assignment 1
- Fix problem with customized validation
Validation must test for an integer before testing its range.
Resulting pizza code with fixed validation in the Restaurant model
- Creating virtual attributes
- Review search and simple form submission
- Adding a drop-down menu (select_tag)
- Using where for specific attributes
- Using the order method
- Review model relationships
- Extended example with movie application
Resulting cinema code with the review model
- Assignment 2