0
Check if the class Post
is correctly defined in the file app/models/post.rb
of your application’s file system and whether it is implemented similar to:
class Post
# código
end
Accidents do happen. One advice I give you is to convert your application code with a version control system, like Git (https://git-scm.com/). This way, any accidental change or loss of code can be easily reversed.
That is not necessary.
– Arthur Felipe