Question: If User is an ActiveRecord class, which choice would be expected to return an array?
- User.where(last_name: 'Smith')
- User.find_or_create(last_name: 'Smith')
- User.find_by_last_name('Smith')
- User.find('Smith')
Answer: The correct answer of the above question is Option A:User.where(last_name: 'Smith')