Why does my rails command always create a new application?

前端 未结 6 2044
执笔经年
执笔经年 2021-02-19 06:20

Forgive me as I\'m new to both *nix and ruby on rails. My rails command always creates a new application and I can\'t figure out why. Running \"rails new myApp\" will just gen

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-19 07:25

    You have installed rails through apt-get so you have rails 2. If you want rails 3, use

    sudo apt-get remove --purge rails # very important so that the new rails is called
    sudo apt-get install rubygems
    sudo gem install rails
    

    Don't forget to relaunch your terminal and you're done.

提交回复
热议问题