Error in etsy-demo project when making a new listing

I keep getting this error message when i try to make new listings on my site: "undefined method `image_content_type' for #<Listing:0x007fc2dabde3f0>" the things is, my code on this sight is exactly identical to yours and to the code on a version of this sight i previously built. I'm trying to figure out why it works fine on both of those but not on this new site. Im sure it is something that i have just forgotten to do when i was building this one but i can't for the life of me figure it out.

Posted about 4 years ago by Joey Chamberland
Posted about 4 years ago by Alex Yang

Hey Joey, sorry you've been having trouble - hopefully we can figure it out together. In the future though, please post course-specific troubleshooting questions in the discussion thread beneath the video. The Ask a Developer forum is for non-course-related issues, like if you need clarification on a Rails concept or need general advice in building out a new feature for your own project.

I suspect that your code is different from the course code in the app/models/listing.rb file. Take a look at the Notes for the 'Set Up Paperclip' video here: https://baserails.com/courses/etsydemo/set-up-paperclip. If you're still having trouble, leave a comment in that Discussion thread. Hope this helps you resolve the issue!

1