Imagine that you have two models: 'User' and 'Book' - and a user can have only one book. How should the association look like in the 'User' model?

🎲 Try a Random Question  |  Total Questions in Quiz: 122  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Ruby on Rails Fundamentals Test — practice the complete quiz, review flashcards, or try a random question.


Imagine that you have two models: 'User' and 'Book' - and a user can have only one book. How should the association look like in the 'User' model?