I\'ve tried to find some solution for this, but I really couldn\'t find anything related with the errors that is appearing to me when I run the rails command:
I fixed mine by updating rails
bundle update rails