我已经尝试了多种方法在数字海洋vps上安装rails,但我不断获得看似旧版本的rails(2.x.x)。我使用railsready和rvm来安装ruby和rails,当我运行rails -v时,我得到4.1.1。但是,当我尝试运行4.x.x rails命令时,它会向我显示本手册,我相信它来自旧版本。为简单起见,我只提出了描述:
Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.
You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.
Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.
Example:
rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.
在我看来,这是来自旧版本的rails,我只是不明白为什么安装这个版本时说它安装了4.1.1。可能导致此问题的原因以及如何解决?