uninitialized constant AppGenerator::Config Error

半腔热情 提交于 2019-12-12 03:35:37

问题


I actually upgraded from Ubuntu 13.10 to Ubuntu 16.04

My rails was working fine in the previous versions. I am removing rvm and reinstalling from scratch. Yet I get this error always when I try to invoke the server

uninitialized constant AppGenerator::Config
Did you mean?  RbConfig

Do I have to define the rails path?


回答1:


Somehow (I think after installing Redmine) my enviroment collapsed.

By following steps I removed and reinstalled Rails. Now the error had gone:

  1. gem uninstall rails
  2. gem uninstall railties
  3. curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
  4. sudo apt-get install -y nodejs
  5. gem install rails -v 5.1.0 (Use your own rails version!)
  6. At your project root bundle install

Cheers,



来源:https://stackoverflow.com/questions/39738700/uninitialized-constant-appgeneratorconfig-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!