For those of you who have just started learning RubyOnRails and have taken the following free Udemy courses, but have stumbled on an error and couldn't complete it to the end, we will share the errors and solutions we have experienced.
Course of "14. Addition of image files and addition of editing functions"
An error occurred in the terminal when I typed "rake db: migrate" in the terminal.
I also got the error "ActiveRecord :: PendingMigrationError" on localhost: 3000.
The reason is that'paperclip' depends on the version of rails. After careful confirmation, it was stated that the course was based on Ruby on Rails 5.2. For me, PaizaCloud was based on Ruby on Rails 6 at the moment.
Let's proceed according to the course.
When I checked the operation in the course of "14. Adding image files and adding editing functions", it proceeded without any error. There is no problem with localhost: 3000.
The cause is unknown, but unlike the others, it seems that the cause is using "<% = from ...".
** I think Laravel is the same, but there were many unexpected deficiencies depending on the version (the description method was different, the package could not be used, etc.). If you encounter an error, don't be frustrated, and I hope everyone will work together to resolve it. ** **
Free courses may not allow you to ask questions to the instructor even if you encounter an error. I hope this post will be a driving force for those who are starting to learn Ruby On Rails to go through to the end without giving up.
Recommended Posts