It is a memorandum Please let me know if you make a mistake
ActiveModel::MissingAttributeError (can't write unknown attribute `image`):
Error that image column cannot be written
Is the type for the form different?
Migration file
t.string :image
Form input screen
<%= f.file_field :image, class: 'input-box_image_file',value: "#{@tweet.image}"%>
Try changing the type
t.text :image
This solved the error!
Recommended Posts