macOS catalina version 10.15.6
Rails 6.0.3.2
Local development environment
undefined method `image_name' for nil:NilClass
It seems that an error has occurred because there is a post that was posted so far (post before adding the image_name column) → I should have erased everything
__ How to delete previous posts __
rails console
Post.destroy_all
This completes the deletion!
After deleting the record that caused the error (the record that does not have a column called image_name), the image was displayed safely.
Can I reproduce Progate's Rails course app (Tweet app) on my PC (local environment)? With that feeling, when I was copying sutras while looking at Progate as a review so far, I was confused with an error message even though it should have been reproduced in exactly the same way.
It's a lot of learning because it gives you errors that you couldn't get with Progate.
I wrote the following article about the actually completed application.
https://qiita.com/tamapora/items/abab44dd099603d87f3e
https://teratail.com/questions/231403