Agile Web Development with Rails 8_B7.0 (page 93)

On page 93, reference is made to the file lorem.jpg, which should be located in the test/fixtures/files folder; however, the file is not located in this folder but in the previously created db/images folder.

product.image.attach(
      io: File.open("test/fixtures/files/lorem.jpg"),
      filename: "lorem.jpg",
      content_type: "image/jpeg"
)