Congratulations! You built an travel app that uses a database to store two kinds of data. What can we generalize so far?
- We connected a Tag to its Destinations using associations. In this case, a tag
has_manydestinations, and a destination
belongs_topair can be used to model other one-to-many relationships, which occur frequently.
- Rails provides seven standard controller actions can be used to do common things such as display and change data