0 votes
in Ruby by

If User is an ActiveRecord class, which choice would be expected to return an array?

a. User.where(last_name: 'Smith')

b. User.find_or_create(last_name: 'Smith')

c. User.find_by_last_name('Smith')

d. User.find('Smith')

1 Answer

0 votes
by

If User is an ActiveRecord class, which choice would be expected to return an array?

Correct answer is :-  User.where(last_name: 'Smith')

Related questions

0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
...