0 votes
in Ruby by

If a product has a user-uploadable photo, which ActiveStorage method should fill in the blank?

class Product << ApplicationRecord

  ____ :photo

end

a. has_one_attached

b. has_image

c. attached_file

d. acts_as_attachment

1 Answer

0 votes
by

If a product has a user-uploadable photo, which ActiveStorage method should fill in the blank?

class Product << ApplicationRecord

  ____ :photo

end

Correct answer is :-  has_one_attached

Related questions

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