0 votes
in Ruby by

Which choice best describes the expected value of @result?

@result = Article.first.tags.build(name: 'Urgent')

a.  either true or false

b. an unsaved Tag instance

c. a saved Tag instance

d. an array of Tag instances

1 Answer

0 votes
by

Which choice best describes the expected value of @result?

@result = Article.first.tags.build(name: 'Urgent')

Correct answer is :-  an unsaved Tag instance

Related questions

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