Every time I close terminal rails defaults back to 2.3.5 from 3.0.3?

后端 未结 4 1649
再見小時候
再見小時候 2021-01-28 21:48

I\'m going through the rails by example tutorial.

Its seems that every time I close terminal rails defaults back to 2.3.5 & I have to go through the process of insta

4条回答
  •  爱一瞬间的悲伤
    2021-01-28 22:09

    @Ads If youre using RVM and you install rails using sudo like so

    $ [sudo] gem install rails --version 3.0.3
    

    youre doing it wrong. RVM depends on you using a ruby distro that was installed by RVM into your user directory. If youre using sudo, youre installing rails gem into your system-wide ruby.

    So check that youre using the right ruby version by doing 'rvm info' and then do your 'gem install rails --version 3.0.3' without sudo

提交回复
热议问题